Question: IN C LANGUAGE A variable like userNum can store a value like an integer. Extend the given program as indicated. 1. Output the user's input.
IN C LANGUAGE
A variable like userNum can store a value like an integer. Extend the given program as indicated. 1. Output the user's input. (2 pts) 2. Output the input squared. Hint: Compute squared as userNum * userNum. (2 pts) 3. Get a second user input into userNum2, and output the sum and product. (1 pt) Note: This lab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
