write a program to input two numbers from the user and display its sum
Answers
Answered by
0
printf("Enter two integers: "); scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers. printf("%d + %d = %d", number1, number2, sum);
Answered by
0
Explanation:
a=int(input ("enter a number"))
b=int(input ("enter a number"))
c=a+b
print(c)
Similar questions