Wednesday, May 18, 2016

SUM OF TWO NUMBERS

Program
 #include<stdio.h>
main()
{
int a,b,sum;
printf("enter the values of a and b: \n");
scanf("%d%d",&a,&b);
sum=a+b;
printf("sum=%d",sum);
}

Output
enter the values of a and b:5 6
sum=11

No comments:

Post a Comment