write a program to find the sum of two number
Answers
Answered by
1
Answer:
Ok
in ms excel write (=Sum())
in python just write:-
a = int(input("Enter 1st number: "))
b = int(input("Enter 2st number: "))
sum = a+b
print("sum", sum)
Answered by
0
Answer:
#include <stdio.h>
int main()
{
int num1, num2, sum;
printf("Enter first number: ");
scanf("%d", &num1);
printf("Enter second number: ");
scanf("%d", &num2);
sum = num1 + num2;
printf("Sum of the entered numbers: %d", sum);
return 0;
}
Output:
Enter first number: 20
Enter second number: 19
Sum of the entered numbers: 39
Explanation:
Similar questions
Science,
1 month ago
India Languages,
1 month ago
Hindi,
9 months ago
Math,
9 months ago
Math,
9 months ago