C - User Input
To get user input in C language, use the scanf(). It is used to read the data input by the user on the console. Let us see an example C program to get input from the user.
C program to print an integer entered by the user
Let us see an example to enter an integer from the user using scanf() and display using printf():
0 comments:
Post a Comment