+ 3

Hey everyone, for the code below, m getting error in the below code, please help me to sort this.

/*for this code i want to get an user input of n value and compare that with the condition and execute the below code*/ https://code.sololearn.com/cIDOlo2K6Gh2

18th Aug 2017, 1:18 PM
vinay megharaj
vinay megharaj - avatar
7 Answers
+ 14
Save the code and then tap insert button and choose "Insert code"
18th Aug 2017, 1:40 PM
furryferret3
furryferret3 - avatar
+ 13
@Serena Yvonne, I don't quite got what he wanted to do. That if statement, completely broke my mind. if(n>12){ System.out.println("Age is 15"); }
18th Aug 2017, 2:00 PM
furryferret3
furryferret3 - avatar
+ 12
It would be better if you embeded ur code, rather than pasting it.
18th Aug 2017, 1:39 PM
furryferret3
furryferret3 - avatar
+ 12
What do you exactly want to make?
18th Aug 2017, 1:45 PM
furryferret3
furryferret3 - avatar
+ 3
How could i do that
18th Aug 2017, 1:39 PM
vinay megharaj
vinay megharaj - avatar
+ 3
Thank you and please help me to sort that
18th Aug 2017, 1:44 PM
vinay megharaj
vinay megharaj - avatar
+ 3
I dont know know how to take user input for code. So I want to compare user input with the condition
18th Aug 2017, 1:48 PM
vinay megharaj
vinay megharaj - avatar