1)
int a = pow(3,2); cout << " a= " << a << endl;
int b = pow(4,2); cout << " b= " << b << endl;
int c = pow(5,2); cout << " c= " << c << endl;
int g = pow(6,2); cout << " g " << g << endl;
int f = pow(7,2); cout << " f " << f << endl;
int x = pow(8,2); cout << " X= " << x << endl;
2)int n=6;
int sum =0;
for(int i = 0;i<10;i++)
{
sum = (i+1)*6;
cout << sum << setw(5);
}
3)int a,b,c,d;
int sum;
a = rand()%14+1;cout << "a = " << a << endl;
b = rand()%14+1;cout << "b = " << b << endl;
c = rand()%14+1;cout << "c = " << c << endl;
d = rand()%14+1; cout << "d = " << d << endl;
sum = a+b+c+d;
cout << sum;
1)
int a = pow(3,2); cout << " a= " << a << endl;
int b = pow(4,2); cout << " b= " << b << endl;
int c = pow(5,2); cout << " c= " << c << endl;
int g = pow(6,2); cout << " g " << g << endl;
int f = pow(7,2); cout << " f " << f << endl;
int x = pow(8,2); cout << " X= " << x << endl;
2)int n=6;
int sum =0;
for(int i = 0;i<10;i++)
{
sum = (i+1)*6;
cout << sum << setw(5);
}
3)int a,b,c,d;
int sum;
a = rand()%14+1;cout << "a = " << a << endl;
b = rand()%14+1;cout << "b = " << b << endl;
c = rand()%14+1;cout << "c = " << c << endl;
d = rand()%14+1; cout << "d = " << d << endl;
sum = a+b+c+d;
cout << sum;