write a c program addition of two numbers using underscore
Answers
Answered by
1
Answer:
How to write C program for sum of two numbers?
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);
Answered by
0
C program addition of two numbers
// Online C compiler to run C program online
#include <stdio.h>
int main()
{
int num_1,num_2;
printf("enter the value of two numbers");
scanf("%d%d",&num_1,&num_2);
printf("sum = %d", num_1+num_2);
return 0;
}
#SPJ3
Similar questions
Math,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Computer Science,
6 months ago
English,
1 year ago