 
                 
                InterviewSolution
 Saved Bookmarks
    				| 1. | Write an algorithm to find square and cube of a number | 
| Answer» 1. Start //(Initial State)2. WRITE “Enter a number” //Printing for taking user input3. Read num //scanning of input4. CALCULATE square = num * num //Formula which USED to calculate for the SQUARE5. Calculate cube = num * num * num //Formula which used to calculate for the cube.6. Write “Square is: ” + square //Printing Square of input7. Write “Cube is: ” + cube //Printing Cube of input8. Stop //(Terminal State)Explanation: | |