Sunday, October 25, 2009

no.3

#include
#include
main()
{
float a, b, c, d, r , e;
a=8;
b=5;
c=9;
d=2;
r=4;
{

printf("Carilah, berapa nilai x dari : \n");
printf("x = 8 + 5 * (9 - 2)/4\n");
e=a+b*(c-d)/r;
printf("Nilai X adalah = ");
printf(" %f\n",e);
}
getch();
}

yg ini tolong koreksi,hehe

0 comments:

Post a Comment