Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- #define N 20
- unsigned short dlugosc;
- char napis[N+1];
- int i;
- int main()
- {
- cout << "Wpisz wyraz " << endl;
- cin >> napis;
- dlugosc = strlen(napis);
- for(i = dlugosc-1; i >= 0; i--) cout << napis[i];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement