0
Solve errors on this code
public class Program { public static void main(String[] args) { int age = 34; if (age > 24){ if (age<30){ System.out.println("yes") } else { System.out.println("no") } else { System.out.println("no answer") }
2 ответов
+ 10
I think semicolon is mandatory in javascript
+ 7
public class Program
{
public static void main(String[] args) {
int age = 34;
if (age > 24){
if (age<30){
System.out.println("yes");//missed semicolon
}
else {
System.out.println("no");//missed semicolon
}
}//missed closing bracket of if
else {
System.out.println("no answer"); //missed semicolon
}
}//missed closing bracket
}//missed closing bracket