Predictions

  • 3
  • unavailable
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".
You can't complete this task, because you're not signed in.
Comments(9)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
OgiLevel 5 , Belgrade
29 June, 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.
captain jackLevel 9 , Mumbai
27 June, 18:21
tell me where am I wrong?
AustinLevel 6 , Lansing
26 April, 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.
AnshulLevel 4 , Mathura
30 January, 12:58
pls tell me where i m wrong
RomanLevel 41
31 January, 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.
Marco BarraganLevel 3 , Santa Rosa
20 December 2018, 00:30
help please!
RomanLevel 41
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.
TofuuLevel 4 , Wilmington
8 October 2018, 20:12
Do you have to turn the string number into an integer or can you leave it as a string?
RomanLevel 41
9 October 2018, 06:12
In this case you can leave it as a string.