Science, asked by kapilpoonam101, 1 year ago

request the user for two integer and output them and their sum​

Answers

Answered by bettysibi
10

Explanation:

#include <stdio.h>

int main() {

int number1, number2, sum;

printf("Enter two integers: ");

scanf("%d %d", &number1, &number2);

// calculating sum

sum = number1 + number2;

printf("%d + %d = %d", number1, number2, sum);

return 0;

}

Similar questions