1. Write a program to add two integers by using class variable
Answers
Answered by
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);
Similar questions
Social Sciences,
6 days ago
Math,
6 days ago
English,
6 days ago
English,
13 days ago
Computer Science,
7 months ago
Science,
7 months ago