[sourcecode language="c"]
/*****************************
* Author: Md. Rana Mahmud *
* r4n4m4hmud.wordpress.com *
*****************************/
#include <iostream>
using namespace std;
int main()
{
int n;
cin>>n;
cin.ignore();
string line;
while(n-->0)
{
getline(cin,line);
for(int i = (line.length()/2)-1; i>=0; i--)
cout<<line[i];
for(int i = line.length()-1; i>=line.length()/2; i--)
cout<<line[i];
cout<<endl;
}
}
[/sourcecode]
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন