explain a program to accept two numbers, find their sum and display the result
Answers
Answered by
0
Answer:
please mark as a brainlist
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
Science,
3 hours ago
Math,
3 hours ago
Social Sciences,
5 hours ago
English,
8 months ago
Science,
8 months ago