Professional Documents
Culture Documents
#include<stdio.h>
main()
{
printf("Hello World\n");
return 0;
}
ddo
#include<stdio.h>
This includes a file called stdio.h which lets us
use certain commands.
stdio is short for Standard Input/Output which
means it has commands for input like reading
from the keyboard and output like printing things
on the screen.
ddo
main()
main is the name of the point where the program
starts and the brackets are there for a reason that
you will learn in the future but they have to be
there.
All programs must have a main function
ddo
{}
The 2 curly brackets are used to group all the
commands together so it is known that the
commands belong to main. These curly
brackets are used very often in C to group
things together.
ddo
printf("Hello World\n");
ddo
/*
ddo
*/
ddo
#include <stdio.h>
main() {
// comments about the program
printf(Hello World! \n); }
ddo
Edit and
save program
errors
errors
Compile program
ddo
End
ddo