How to find sum of two numbers using C Language

C program to find sum of two numbers


#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:


Enter two no: 5 6
Sum : 11
How to find sum of two numbers using C Language

Published on 12-Dec-2021 8:44:14

You may also like this!