3. Write a program in C++ that prints the numbers and its cube from 1 to 10 using the following control statements: (i) if-else (ii) for loop (iii) while-do loop (iv) do-while loop 4. Modify the above...




3. Write a program in C++ that prints the numbers and its cube from 1 to 10 using the following control statements:


(i) if-else (ii) for loop


(iii) while-do loop (iv) do-while loop


4. Modify the above program so that it prints the number, square and the cubes of only odd numbers from 0 to 100. The output should be like


Number Square Cube


. . .


. . .




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here