package com.codegym.task.task03.task0319;
/*
Predictions
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String ans=br.readLine();
int num1=Integer.parseInt(ans);
String vans=br.readLine();
int num2=Integer.parseInt(vans);
String name=br.readLine();
System.out.println(name+" "+"will recive"+" "+num1+" "+"in"+num2+"years.");
}
}
plzz wats wrong
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Ravi Kumar
31 October 2018, 12:38
Define num2 first and then num1 and try
0
Roman
29 August 2018, 06:10
Have you tried to run you code?
Use the keyboard to separately enter the name, number1, and number2.
The order is important!
0