+ 1
Help Test getting failed
#include <iostream> #include <algorithm> using namespace std; int main() { string word; cout<<"Type a word : "; cin>>word; reverse (word.begin(),word.end() ); cout <<word; return 0; } This is my code i'm getting the correct answer but test keep getting failed
4 Respostas
+ 4
remove this line from your code and try to run again:
cout<<"Type a word : ";
+ 2
Thanks bro it worked.
0
Is this for code coach problem?
0
Yes