C Program To Add Two Numbers

PROGRAM :

#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter two number to add \n");
scanf("%d%d",&a,&b);
c = a + b;
printf("\nSum of %d and %d is %d",a,b,c);
}



OUTPUT :

Enter two number to add
3
Sum of 2 and 3 is 5

Post a Comment

0 Comments