#include
#include
int main(void)
{
float a, b, c, d, avg=0;
clrscr();
printf("\n Enter the four floating point no's.\n");
scanf(" %f %f %f %f " ,&a, &b, &c, &d);
avg = ( a + b + c + d ) / 4;
printf("\n The average is = %10.5f",avg);
getch();
return 0;
}
No comments:
Post a Comment