Sunday, October 25, 2009

no.2

#include
int main(void)
{
float a, b, c, d;
a=9;
b=5;
c=8;
{
printf("Carilah Rata-rata dari blangan dibawah ini: \n");
printf("a = 9\n");
printf("b = 5\n");
printf("c = 8\n");
d=(a+b+c)/3;
printf("Hasil rata-rata adalah = ");
printf(" %f\n",d);
}
return 0;
}

0 comments:

Post a Comment