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
. . .
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here