Question: done in visual studios Write a program and flowchart. The program should contain two functions. 1. In main(). you ask the user for a value.
Write a program and flowchart. The program should contain two functions. 1. In main(). you ask the user for a value. 2. The sq0 function should return the square of the integer passed to it. (The sq0) function should NOT print the value, but should return the value to main(), and main() will print the value.). 3. The cube() function should return the cube of the number passed to it. (The cube() function should NOT print the value, but should return the value to main(), and main() will print the value.). 4. Be sure to prototype all functions. Here is what the output looks like. RACIS126\CIS126 November 2018 Development Unit 3\Unit 3 Graded Exercise 3.exe Enter a number, and the program will calculate the square and the cube. The square is 25 The cube is 125 Process exited after 2.481 seconds with return value o Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
