Add two number input take from the user.
See how it is work
1. printf( ) function is used to print what written inside the double quotes(" ") .\n is used to insert a new line.
2. scanf( ) function is used to take input from the user. %d are formate specifiers and %d is used to take an integer as an input and output.
3. sum=a+b is a mathematical expression is used to add a and b and store its value in the sum variable.
4. and then use printf function to print the out of the sum.
0 Comments