public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s = br.readLine();
int n = Integer.parseInt(s);
int age = br.readLine();
int a = Integer.parseInt(age);
if(a<18)
{
System.out.println("Grow up a little more");
}
}
}
help
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Khurram
18 October 2018, 14:34
name should be String, do not parse it to integer and also change the variable age to String where you are storing the input from readLine()
0
imran khan
18 October 2018, 14:41
its done thanx bro
0