Computer Science, asked by kim215, 2 months ago

write a program to input two numbers from the user and display its sum​

Answers

Answered by llAgniSiragull
0

 \pink{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 boss222005
0

Explanation:

a=int(input ("enter a number"))

b=int(input ("enter a number"))

c=a+b

print(c)

Similar questions