Question: C++ programing Lab1,StartVS,Spring.19.rtf (Protected View) (Last saved by user)- Word (Unlicensed Product) Help Tell me what you want to do 27. Implement a source code,
Lab1,StartVS,Spring.19.rtf (Protected View) (Last saved by user)- Word (Unlicensed Product) Help Tell me what you want to do 27. Implement a source code, using 'cout', to display the table: number square cube 1 2 3 8 27 with columns displayed at a TAB distance (1t): - declare an 'int' variable 'n, initialized to 1; - using operators ++ and to move 'n' from 1 to 27 - from 1 to 2, use n++ - from 2 to 4, use n*n - and so on. 28. Redisplay the above table number square cube 2 3 27 with the columns right-justified, like numbersquare cube 1 2 27 third column right-justified Use function pow ) instead of multiplication operator *. And, in order the columns to become right-justified, add a field-width manipulator setw (2) before displaying the numbers NOTE: add #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
