Write a program that will calculate square and cube of


Write a program that will calculate square and cube of numbers ranging from 0 to 10. Print the output like the following table (hint: use for loop, to print as a table use printf formatting for width).

Number        Square            Cube

0                     0                      0

1                     1                      1

2                     4                      8

3                     9                      27

4                    16                     64

5                    25                    125

6                    36                    216

7                    49                    343

8                    64                    512

9                    81                    729

10                  100                  1000

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that will calculate square and cube of
Reference No:- TGS0645683

Expected delivery within 24 Hours