+ 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!"); } } } }
4 Answers
+ 5
You need to print High Five. That's all. Picky, I know.
+ 4
In "High Five" the f must be uppercase.
Read the description very carefully.
+ 1
Ok thanks
+ 1
Swanand bro, read the problem twice before diving into the solution đ