0

I need help identifying what the issue with my code is

For the cheer creator exercise, I wrote the following code: #include <iostream> using namespace std; int main() { int no_of_yards; cin>> no_of_yards ; if(no_of_yards < 1){ cout<<"shh"; } else if (no_of_yards >= 1 && no_of_yards <= 10){ for(int i = 1; i<= no_of_yards ; i++){ cout<< "Ra!"; } } else { cout<< "High five"; } return 0; } It shows there's a wrong test case with this code. Please help me with a hint or clue here

17th Feb 2024, 3:04 PM
Ikechukwu Ogbonna
2 Réponses
+ 3
"High Five", not "High five"
17th Feb 2024, 3:20 PM
Lisa
Lisa - avatar
0
Thanks ✨
17th Feb 2024, 3:27 PM
Ikechukwu Ogbonna