Input and output in C programming:
Requirement: visual studio code and C compiler
scanf(): function to take input from the user,
printf(): function to display output to the user.
here you can include the header file stdio.h
int main()
{
int number;
// Printing a message on the output screen
printf("Enter a integer number:");
// Taking an integer value from keyboard
scanf("%d", &number);
//we use ampersand symbol as a prefix to a variable name ‘&’, it gives the address of that variable.
// Displaying the entered value in the output screen
printf("You have entered the number: %d", number);
//: %d format specifier
return 0;
}