Computer Science, asked by sharmadevu503, 5 months ago

2) WAP to input 2 numbers and print their sum​

Answers

Answered by Braɪnlyємρєяσя
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