Basic:-
1.To print "Hello World"
So:-
#include<stdio.h>
#include<conio.h> //if u r using Turbu c++ it is used for accessing getch() funcion that's use for //holding the console
int main() // better to use it rather than void main() reason will be explained after 2-3 //more codes
{
printf("\nHello World");//\n used for printing a newline
getch(); //it should be placed before return 0 otherwise console will not be holded //after excution.
return 0;
}
1.To print "Hello World"
So:-
#include<stdio.h>
#include<conio.h> //if u r using Turbu c++ it is used for accessing getch() funcion that's use for //holding the console
int main() // better to use it rather than void main() reason will be explained after 2-3 //more codes
{
printf("\nHello World");//\n used for printing a newline
getch(); //it should be placed before return 0 otherwise console will not be holded //after excution.
return 0;
}
No comments:
Post a Comment