0
Why is it wrong output
I made a code for the code coach solution deja vu but it always show deja vu when it should show unique https://code.sololearn.com/cnLUS36ka4Ut/?ref=app
3 Réponses
+ 4
why u define so many char Variables variable1,variable2...... variable10.
You can define
string x;
cin>>x;
Your code woRkiNg infinite times becoz your conditions is true all time and it will print
cout << "Deja Vu";}
Your commented last cout statement and use round bracket in conditions .
+ 1
Of course! Your code always shows "Deja Vu", because if statement is always true. You should use loop which runs up to input number. Read question carefully. Good Luck!
+ 1
Win Htay Amanbek Orynbay ok I used do while but I only want it once how to fix that?