0
Help me to find a mistake
public class Program { public static void main(String[] args) { int coments=100; int likes=30; int sum=coments+likes; int days=2; days++; if(sum>=50){if(days>30){System.out.print("u have enouf followers in required time");}else{System.out.print("your time is finished");}else{System.out.print("u dont have enouf followers at all");} }
2 ответов
0
Munaziri Why did u use two else's for one if statements, which is the error try ending if loop with } and write else outside the if loop for first If loop then it works.
HOPE this helped! :)