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
Social Sciences,
2 months ago
Science,
2 months ago
World Languages,
5 months ago
Physics,
11 months ago
Physics,
11 months ago