Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Podajemy wyraz. Program wypisuje go od tylu
- #include <iostream>
- #include <string>
- using namespace std;
- int i;
- string wyraz;
- string output;
- int main()
- {
- cout << "Podaj wyraz: ";
- cin >> wyraz;
- for(i=wyraz.length();i>=0;i--)
- {
- //cout << wyraz[i];
- output = output + wyraz[i];
- }
- cout << "Ten wyraz po odwroceniu to: " << output << endl;
- }
Add Comment
Please, Sign In to add comment