Some predictions are quite logical. For example, if you become a real programmer, then you'll have a high salary after a while. You don't have to be Nostradamus to come up with that. Let's code up a program where we indicate a name and two numbers (a salary and a number of years). Then we'll display a phrase: " will receive in years".
Predictions
- 3
Locked
Comments (12)
- Popular
- New
- Old
You must be signed in to leave a comment
Davidh Dionicio
17 January 2021, 03:48
eays :D
0
Ashleigh
6 January 2020, 00:12
Is there a reason why the years number has to be converted into a string but not the salary ?
0
Sanika
6 January 2021, 04:25
Nothing has to be converted to string. You just accept the input in string variables name, number1 and number2. Then you display it using string concatenation. 😁
0
Ogi
29 June 2019, 09:01
First I asked for input like in the previous task: numbers first, then the name. And the code was not accepted, even though it gave the correct output. Then i put the name first, then the numbers, and it was accepted... Really annoying.
0
captain jack
27 June 2019, 18:21
tell me where am I wrong?
+1
Austin
26 April 2019, 18:55
The conditions do not say we have to use import java.io.*. Personally, I'd rather just use java.util.Scanner; and accomplish the same task, but the program shits the bed anything you try changing which package you're importing.
0
Anshul
30 January 2019, 12:58
pls tell me where i m wrong
+1
Roman
31 January 2019, 07:02
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.
0
Marco Barragan
20 December 2018, 00:30
help please!
+1
Roman
20 December 2018, 06:45
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.
0
Tofuu
8 October 2018, 20:12
Do you have to turn the string number into an integer or can you leave it as a string?
+1
Roman
9 October 2018, 06:12
In this case you can leave it as a string.
+1