Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- string str;
- int len, i=0;
- char tt[1000];
- ifstream fin("input.txt");
- ofstream fout("o.txt");
- void funkc()
- {
- if(i<len)
- {
- i++;
- fout<<tt[len-i]<<endl;
- funkc();
- }
- }
- int main()
- {
- fin>>str;
- strcpy(tt, str.c_str());
- len=str.length();
- funkc();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement