Predictions

  • 2
  • Locked
Use the keyboard to separately enter the name, number1, and number2. Display the following phrase: «name» will receive «number1» in «number2» years. Here's an example: Nick will receive 10000 in 5 years.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Gm f
Level 3 , Chile
10 November, 19:46
Hello i put the code BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String name = reader.readline(); String money = reader.readline(); String years = reader.readline(); System.out.println(name + " will receive " + money + " in " + years + " years. "); and it didnt work, and when i asked for the solution, it was exactly the same code, so i dont know what i did wrong ?