This program is first in c programming and simple also in programming. This program is very short and in this program, we tell how to use the printf, scanf, include and many more function are used in this program and the start program this program run on turbo c or Visual Studio Code
Turbo c
#include// used to a Header file which contain all the I/o functions
like printf,scanf
#include// used to store the value
void main()//used to Main function returns void in void main
clrscr(); //used to clear the output window
printf("hello everyone"); //used to print the “character, string, float,
integer, octal and hexadecimal values” onto the
output screen. We use printf() function with %d
format specifier to display the value of an integer
variable.
getch();// used to getch() reads a single-byte character from input.
getch() is a way to get a user inputted character. It can be used
to hold program execution, but the "holding" is simply aside-
effect of its primary purpose, which is to wait until the user
enters a character.
}
Visual Studio Code
#include// used to a Header file which contains all the I/o functions
like printf,scanf
int main() // used to Main function returns integer in int main
{
printf("hello every one"); //used to print the “character, string, float,
integer, octal and hexadecimal values” onto the
output screen. We use printf() function with %d
format specifier to display the value of an
integer variable.
return 0; //used to return the value of the main function is considered the
"Exit Status" of the application. On most operating system
returning 0 is a success status like saying "The program worked
fine"
}
Top comments (4)
Good work!!Keep it up
Nice work 👌👍
Thanks priyanshu
You doing best
Some comments have been hidden by the post's author - find out more