Computer Science, asked by kumariakansha8254, 2 months ago

write a program to add two numbers using variables by taking input from the user?​

Answers

Answered by bhunikasharma
0

Explanation:

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

Explanation:

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);

Similar questions
Math, 2 months ago