Question: Write a program that inputs an integer n and calculates its square ( that is , n n ) and cube ( that is ,
Write a program that inputs an integer n and calculates its square that is n n and cube that is n n n For example, if the given integer is the output values are and
Input and output: Your program should input an integer between and and print its square and cube.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
