C Input and Output
In C Programming has several in-built library functions to perform input and output operations.
But printf() and scanf() functions are commonly used in c programming.
Both functions are inbuilt library functions, defined in stdio.h
1. printf() function
the printf() function sends formatted output to the standard output like screen.
2. scanf() function
The scanf() function is used for input data from standard input like keyboard.
#include
int main() {
int m;
printf("Enter M number");
scanf("%d",&m );
printf("M number is :%d",m");return 0;
}
Output
Enter m number: 44
M number is: 44