Write a program sum of two numbers.
Answers
Answered by
1
Answer:
#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;
}
Explanation:
Answered by
1
Answer:
Program:-
Explanation:
#PROGRAM TO FIND THE SUM OF TWO NUMBERS
a= int(input ("Enter the first number"))
b= int(input ("Enter the second number"))
sum = a + b
print ("sum of two numbers -", sum)
OUTPUT:-
Enter the first number 5
Enter the second number 3
Sum of two numbers = 8
Pls mark it as brilliant please
Similar questions