Addition of two number C program



addition.c

#include<stdio.h>
 
int main()
{
   int a, b, c;
 
   printf("Enter two numbers to add\n");
   scanf("%d%d",&a,&b);
 
   c = a + b;
 
   printf("Sum of entered numbers = %d\n",c);
 
   return 0;
}


Output-

Enter two number to add 
5
6
Sum of entered numbers = 11

0 comments:

Post a Comment

My Instagram