+ 2

Why is this code not working?(cheer creator)

In the cheer creator code challenge In C #include <stdio.h> int main() { int i,a; scanf("%d",&i); if(i>=10) printf("High Five"); else if(i<1) printf("shh"); else for(a=0;a<i;a++) printf("Ra!"); return 0; } I pass 4/5 cases but i am not able to pass the 4 th case can someone tell me what's wrong?

8th Jul 2023, 7:09 PM
Darshini J
Darshini J - avatar
1 Réponse
+ 1
Darshini J The high five is only when the team got OVER ten yards not ten yards and over.
8th Jul 2023, 7:32 PM
Junior
Junior - avatar