0
BUGGGGGGSSSSSSSSSSSS
SO, I was doing the Cheer Creator Code Coach challenge, and I kept coming across random errors with (as always) little to no explanation, HOW DO I FIX THIS??? It’s written in Java btw import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner yards = new Scanner(System.in); if (10 < yards) { System.out.println("High Five"); } else if (yards < 1) { System.out.println("shh"); } else { for (int i = 0; i <= yards; i++) { System.out.println("Ra!"); } } }
2 ответов
+ 3
+ 1
If(yard>=10)
System.out.println("High Five");
else if(yard<1)
System.out.println("shh");
for(int i=0;i<yards && i<=10;i++)
System.out.println("Ra!");