write a program to add two numbers using variables by taking input from the user?
Answers
Answered by
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
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
Social Sciences,
3 hours ago
Chemistry,
3 hours ago
Social Sciences,
3 hours ago
Hindi,
5 hours ago
Math,
7 months ago
English,
7 months ago