Computer Science, asked by srijanisarkar2030, 1 month ago

write the program to take any two numbers and find the sum of these numbers​

Answers

Answered by snehaakangire061
0

Answer:

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 Aditya4111Upadhyay
0

Answer In Python:

num1= int(input('Enter the first number: '))

num2= int(input('Enter the second number: '))

sum= num1 + num2

print('The sum of the two given numbers is: ', sum)

Explanation:

In the first and second line we have given a input statement to take the input from the user in integer. Then we have calculated the sum of the two provided numbers and then we have printed their sum with a statement.

Similar questions