Square, Cube solution program in C

0
4
programming solution

 Question: 

Write a program that prompts the user to enter a value and display the values, square and cube data like output sample.

 Output Sample: 

InputOutput
3
3Number
1
2
3
Square
1
4
9
Cube
1
8
27
5Number
1
2
3
4
5
Square
1
4
9
16
25
Cube
1
8
27
64
125
2Number
1
2
Square
1
4
Cube
1
8

 Source Code: 

 List of C Exercises: 

LEAVE A REPLY

Please enter your comment!
Please enter your name here