- 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.
5 Antworten
+ 1
You want us to give you code or to correct existing one?
0
Correct this one
https://code.sololearn.com/caoF8LNKI2kJ/?ref=app
0
For first:
https://code.sololearn.com/cz2ZV3EdcUGe/?ref=app
It has some syntax errors corrected.
And you want us to add last part?
0
Thanks for the help I think I got it
0
You're welcome