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");} }

4th Sep 2020, 6:45 AM
Munaziri
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! :)
4th Sep 2020, 6:51 AM
RuntimeERROR
RuntimeERROR - avatar