Computer Science, asked by sreejamukkera05, 6 months ago

write a c program addition of two numbers using underscore​

Answers

Answered by sharma1009pooja
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 KailashHarjo
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