hypergrade problem.!!!

i have a problem, when i run my program though hypergrade, it tells me that i am missing the "\n" on line 18, but its there. and i dont know what to do. please help me. thank you.

this is the code, the problem is on line 18

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <cstring>

 using namespace std;

 int main()
 {
      char words[100];
      int x, i;

      cout<< "Enter some word" << endl;
      cin>> words;

      x = strlen(words);

      for(int i = x; i > 0; i--)
      {
         cout<< words[i - 1];
      }

     return 0;
 }
Last edited on
Topic archived. No new replies allowed.