Question: 1. Create a console-based program whose Main() method prompts the user for an integer value and, in turn, passes the value to a method that
1. Create a console-based program whose Main() method prompts the user for an integer value and, in turn, passes the value to a method that squares the number and to a method that cubes the number. The Cube() method should call the Square() method. The Main() method displays the results returned from each of the other methods..
2. Create a GUI application that accomplishes the same tasks as Exercise 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
