//rotate strings
#include
#include
using namespace std;
int main()
{ int j,i;
char s[10],temp;
cout<<“enter string”;
cin>>s;
j=strlen(s);
for(i=0;i<strlen(s)/2;i++)
{
temp = s[i];
s[i]=s[j];
s[j]=temp;
}
cout<<s;
}
//rotate strings
#include
#include
using namespace std;
int main()
{ int j,i;
char s[10],temp;
cout<<“enter string”;
cin>>s;
j=strlen(s);
for(i=0;i<strlen(s)/2;i++)
{
temp = s[i];
s[i]=s[j];
s[j]=temp;
}
cout<<s;
}
Hi @vanshu21, pls save your code on ide.codingblocks.com and share the URL here. Also pls tell what kind of help do you want in your code.