Write a program to add two integers and print their sum. Print ONLY
the sum without any other string. Also assume that the numbers to
be added are being entered via command line while your c
program is
getting executed
Answers
Answered by
11
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 ", sum);
return 0;
}
Answered by
0
Answer:
I know this it is easy but I am going to take my class so maybe next time
Similar questions