Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- /*
- Mala u Velika slova
- */
- int main() {
- char str[100];
- char* s;
- printf("Uneti string: ");
- gets(str);
- s = str;
- while (*s) {
- if (isupper(*s)) *s = tolower(*s);
- else if (islower(*s)) *s = toupper(*s);
- s++;
- }
- printf("String : %s", str);
- getchar();
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment