India Languages, asked by maneeshaperumala, 7 months ago

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 kavyapc
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 saritanig1234
0

Answer:

I know this it is easy but I am going to take my class so maybe next time

Similar questions