please help me i really need this badly
i'm trying to write all the possible code but the outcome i needed is not right
i write a program that you input a string then the output will be the last letter of you input will come first then follows
example: input
car
output
rca
#include<iostream.h>
#include<string.h>
int main()
{
int x,a;
char word[20];
cout<<"Enter a string: ";
cin.getline(word,20)"
a=strlen(word);
cout<<"the new word ";
for(x=a-1;x<=a;x++)
for(j=2;j>x;j--)
cout<<word[x]
OUTPUT
when i input car
the out is only letter r
please help me ....i need it now
thank you so much!! !