Translator

Sabtu, 30 April 2011

perulangan pada c++

#include
#include
int a,b,c,d,e,f,g;
void main ()
{


cout<<" Program Perulangan \n";
cout<<" Muhammad Ridwan \n";
cout<<"NPM : 1010122261085 \n\n";
cout<<"================================= \n";
cout<<"| A | B | C = A+B | \n";
cout<<"--------------------------------- \n";
a = 1; d = 0;
b = 2; e = 0;
c = 3; f = 0;
while (a <= 6)
{
d = d + a;
e = e + b;
f = f + c;
cout< cout< cout< a = a + 1;
b = b + 2;
c = a + b;
}
cout<<"--------------------------------- \n"< cout<<"Total";cout< cout< cout< cout<<"================================= \n\n";
cout<<"Total [A+B+C]"<<(d+e+f)< cout<<"iwan_link ^_^";
}

telusuri

Labels

wibiya toolbar