» The printf() function is used for output. printf, print the statement.
» The scanf() function is used for input. scanf read the input data.
» Both functions are inbuilt library functions, defined in header file (stdio.h).
#includevoid main() { int age,mob_no; printf("Enter Your Age:"); scanf("%d",&age); printf("Enter Your Mobile No:"); scanf("%d",&mob_no); printf("\n Your Age Is:"age); printf("\n Your Mobile No. Is:"mob_no); }
Output:-
Your Age Is age
Your Mobile No.Is mob_no