Cheer Creator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Cheer Creator

I am solving cheer creator code in java I passed 4 test cases but it shows test case 3 "failed" And i am not a pro member that's why I am not able to open it also Please help me to debug the code This is my code: import java.util.*; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int yards = sc.nextInt(); if(yards<1){ System.out.println("shh"); } else if(yards>10){ System.out.println("High five"); } else{ for(int i=0;i<yards;i++){ System.out.print("Ra!"); } } } }

14th Jan 2023, 3:28 PM
Swanand Sawant
Swanand Sawant - avatar
4 Answers
+ 5
You need to print High Five. That's all. Picky, I know.
14th Jan 2023, 3:38 PM
Ausgrindtube
Ausgrindtube - avatar
+ 4
In "High Five" the f must be uppercase. Read the description very carefully.
14th Jan 2023, 3:38 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Ok thanks
14th Jan 2023, 3:43 PM
Swanand Sawant
Swanand Sawant - avatar
+ 1
Swanand bro, read the problem twice before diving into the solution 💀
16th Jan 2023, 5:38 PM
Swastik Sawant
Swastik Sawant - avatar