Reverse A String

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { char x[10]; for(int i=0 ; i<10 ; i++){ cin>>x[i]; } char y[10]; int j =0; for(int q=9;q>=0;q--){ y[j]=x[q]; j++; } for(int j=0 ; j<10;j++){ cout<<y[j]; } }
Editor Settings
Theme
Key bindings
Full width
Lines