2) WAP to input 2 numbers and print their sum
Answers
Answered by
4
Explanation:
printf("Enter two integers: "); scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers. printf("%d + %d = %d", number1, number2, sum);
Similar questions
English,
2 months ago
Science,
2 months ago
World Languages,
4 months ago
Physics,
9 months ago
Physics,
9 months ago