#include <stdio.h>
#include <stdlib.h>
int main()
{
float a,b,c,d,e;
printf("\n\t enter the first number = ");
scanf("%f",&a);
printf("\n\t enter the second number = ");
scanf("%f",&b);
printf("\n\t enter the third number = ");
scanf("%f",&c);
e=a+b+c;
printf("\n\tthe sum of three number is = %.2f ",e);
d=(a+b+c)/3;
printf("\n\t the average of three number is = %.2f ",d);
return 0;
}
THE OUTPUT
enter the first number = 10
enter the second number = 19
enter the third number = 20
the sum of three number is = 49.00
the average of three number is = 16.33
No comments:
Post a Comment