Computer Science, asked by sahbaz2203, 1 year ago

Write a program in c language to calculate the sum of two numbers

Answers

Answered by atd01
0
#include <stdio.h>

int main() {

int a,b,sum;
scanf("%d%d", &a, &b);
sum= a+b;
printf("%d", sum);

return 0;
}

Please mark this answer brainliest if satisfied
Answered by rishitashukla009
0
C Program to find sum of two numbers


1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<stdio.h>
 
int main() {
   int a, b, sum;
 
   printf("\nEnter two no: ");
   scanf("%d %d", &a, &b);
 
   sum = a + b;
 
   printf("Sum : %d", sum);
 
   return(0);
}
Output :


1
2
Enter two no: 5 6
Sum : 11
Similar questions