hye..
i need some help in recursion..anyone can help me to transform this coding into recursion??
please teach me how to transform it..thank u~
insertCode:#include <iostream> using namespace std; #include<conio.h> #include<string.h> int main(){ string reversed; string str; cout<<"Input: "; cin>>str; for(int i = str.length() - 1; i >= 0; i--) { reversed += str[i]; } cout<<"Output :"<<reversed<<endl; getch(); return 0; }