Advertisement
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;
- int main()
- {
- cout << "Podaj wyraz: ";
- cin >> wyraz;
- for(i=wyraz.length();i>=0;i--)
- {
- cout << wyraz[i];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement