#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<
b = b + 2;
c = a + b;
}
cout<<"--------------------------------- \n"<
cout<<"Total [A+B+C]"<<(d+e+f)<
}