WE WILL DISCUSS HOW TO TAKE INPUT FROM USER...
Format Specifiers
There are many format specifiers defined in C. Take a look at the following list:
%i or %d int
%c char
%f float
%s string
%i or %d int
%c char
%f float
%s string
ESCAPE SEQUENCE:
\n (newline)\t (tab)
\v (vertical tab)
\f (new page)
\b (backspace)
\r (carriage return)
\n (newline)
%d (print as a decimal integer)
%6d (print as a decimal integer with a width of at least 6 wide)
%f (print as a floating-point)
%4f (print as a floating-point with a width of at least 4 wide)
%.4f (print as a floating-point with a precision of four characters after the decimal point)
%3.2f (print as a floating-point at least 3 wide and a precision of 2)
Coding
#include<stdio.h>int main()
{
int a;
printf("Enter the number\n");
scanf("%d\n",&a);
printf("%d",(a+10));
}
For know the Execution of the Coding watching below video
We you have any doubt let me know :)