- 1

Can someone help me with this code for java

A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated. (1) Output the user's input. Enter integer: 4 You entered: 4 (2) Extend to output the input squared and cubed. Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64!! (3) Extend to get a second user input into userNum2. Output sum and product. Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64!! Enter another integer: 5 4+5 is 9 4*5 is 20.

8th Mar 2019, 2:48 PM
Jordan Sims
Jordan Sims - avatar
5 Answers
+ 1
You want us to give you code or to correct existing one?
8th Mar 2019, 3:01 PM
Maneren
Maneren - avatar
8th Mar 2019, 3:04 PM
Jordan Sims
Jordan Sims - avatar
0
For first: https://code.sololearn.com/cz2ZV3EdcUGe/?ref=app It has some syntax errors corrected. And you want us to add last part?
8th Mar 2019, 3:11 PM
Maneren
Maneren - avatar
0
Thanks for the help I think I got it
8th Mar 2019, 3:40 PM
Jordan Sims
Jordan Sims - avatar
0
You're welcome
8th Mar 2019, 3:48 PM
Maneren
Maneren - avatar