BUGGGGGGSSSSSSSSSSSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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!"); } } }

22nd Dec 2020, 4:02 AM
Dallas Griffith
Dallas Griffith - avatar
2 Answers
22nd Dec 2020, 4:06 AM
Shahghasi Adil
Shahghasi Adil - avatar
+ 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!");
22nd Dec 2020, 4:25 AM
Ri He
Ri He - avatar