0
Code coach Cheer creator?
Why did the second way pass all the cases and not the first? https://code.sololearn.com/c8e9xPgWVl1P/?ref=app
7 Answers
+ 4
Roderick Davis it's working fine.
mistakes:
High Five is separated by only one space.
You forgot to declare x data type
if(yards > 10){
System.out.println("High Five");
}else if(yards < 1){
System.out.println("shh");
}else{
for(int x = 0; x<yards;x++){
System.out.print("Ra!");
}
}
+ 2
rkk it was the extra spaces, thanks đđŸ
+ 1
rkk lol it passed 4/5 cases tho so its clearly the order of the if-elseif structure. Which is not making sense to me
+ 1
Roderick Davis You're welcome! đ
0
because the first one is wrong. đ
0
~ swim ~ ??
0
https://code.sololearn.com/cxI8EI2JoM47/?ref=app
I can't find the mistake