#include <stdlib.h>
int main()
{
int a,b,c,d;
/*DYNAMIC*/
printf("\n\t enter the value of a= ");
scanf("%d",&a);
printf("\n\t enter the value of b= ");
scanf("%d",&b);
printf("\n\t enter the value of c= ");
scanf("%d",&c);
d=a+b+c;
printf("\n\t the sum of three number are = %d",d);
return 0;
}
The output
enter the value of a= 2
enter the value of b= 2
enter the value of c= 2
the sum of three number are = 6
No comments:
Post a Comment