রবিবার, ৭ ফেব্রুয়ারী, ২০১৬

Reverse a string solve by c++

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

int main()
{
    string str;
    cout << "Enter a string: ";
    cin >> str;
    reverse((str.begin()), (str.end()));
    cout << str << endl;
    return 0;
}


ahmed shuvo969

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন