Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- void izokreni(char* string, int i) {
- cout << string[i];
- if(i != 0) izokreni(string, i-1);
- }
- int main() {
- char tekst[50];
- cin.getline(tekst,50);
- izokreni(tekst,strlen(tekst));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement