// Problem 2.21, page #126 // Write a C++ program that utiizes looping and the tab escape sequence \t // to print the folling table of values: // // N 10*N 100*N 1000*N // 1 10 100 1000 // 2 20 200 2000 // 3 30 300 3000 // 4 40 400 4000 // 5 50 500 5000 #include main() { cout << "******** Homework #7 ***********\n\n\n"; cout << "******** Output for Problem 2.21 ***********\n\n\n"; cout << "N" <<"\t10*N" << "\t100*N" << "\t1000*N\n" << endl; for( int i=1; i<6; i++) cout << i << "\t" << i*10 << "\t" << 100*i << "\t" << 1000*i << endl; return 0; }