write a program to store any two numbers and print there sum
Answers
Answered by
2
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
1
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
Computer Science,
2 months ago
English,
2 months ago
Social Sciences,
5 months ago
Math,
10 months ago
English,
10 months ago