0
Hey guys , why my code is not working in 3rd condition
Cheer creator question #include <iostream> using namespace std; int main() { int x; cin>>x; if(x>10){ cout<<"High five"<<endl; }else if(x<1){ cout<<"shh"<<endl; }else for(int i=0;i<x;i++){ cout<<"Ra!"; } return 0; }
5 Answers
+ 1
Alphin K Sajan and Bhavya Sarraf thanks
But changing "five" To "Five" Works
+ 5
Your 3rd condition shoud be like:
else { for(int i=0;i<x;++i)
cout<<"Ra!";
}
+ 1
gouravcc 1 your code is correct, just change the word 'five' to 'Five'.
+ 1
Thanks QTWizard it works đđ