To print out "Hello World" line, we need the fooling elements in our program.
- Header File - provides the printf( ) function.
- Main Function - starting point of the program.
- Printf( ) Function - this function will be the one to print out the line.
- Getch( ) Function - ends the program.
Desired Output:
Code:
---------------------------------------------------------------
#include<stdio.h>
main()
{
printf("Hello World");
getch();
}
---------------------------------------------------------------
Remember: In printing out strings don't ever forget to put double quote in the
start to end of the line.Do not leave statements without semicolon
that indicates termination.
Note: If there`s wrong about the info. please take time to notify me.
No comments:
Post a Comment