Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Zmien male na wielkie litery i odwrotnie
- w napisie przeczytanym z klawiatury
- #include<iostream>
- #include<ctype.h>
- using namespace std;
- int main(){
- char tekst[1000];
- cout << "Wprowadz tekst: ";
- cin >> tekst;
- char spr;
- int i = 0;
- cout << "Twoj tekst po zamianie na male litery: " << endl;
- while(tekst[i]){
- spr = tekst[i];
- putchar(tolower(spr));
- i++;
- }
- cin.ignore();
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement