Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void rf(){
- char znak;
- cin >> znak;
- if (znak != '.')
- {
- rf();
- cout << znak;
- }
- else cout << "Vas tekst obrnuto je ovakav: \n";
- }
- int main(){
- cout << "Unesite tekst: " << endl;
- rf();
- system("pause>null");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement