Here is my code hitherto:

(assuming the string is less than 10 digits)

```
string s;
cin >> s;
int array[10];
for(int i=10, j =s.length(); i>0 && j>0; i--,j--){
array[i]=(int)s[j];
}
for(int b=10; b>0;b--){
cout << array[b];
}
```

thanks for any help!

By : j.doe