Computer Science, asked by SambuddhaGanguly, 2 months ago

write a program to find the sum of two number​

Answers

Answered by Anonymous
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 hassaanshaikh7867
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