Last active
December 15, 2015 02:59
-
-
Save mertyildiran/5190971 to your computer and use it in GitHub Desktop.
Yukarıda, standart girdiden alınan karakterleri standart çıktıya yazdıran bir C kodu verilmiştir. Bu kodu, okunan karakterlerin küçük olması durumunda okunan karakterleri büyüterek yazdıran, büyük olması durumunda ise okunan karakterleri küçülterek yazdıran hale çeviriniz. Đpucu: “ctype.h” isimli başlık dosyasında prototipleri yer alan “islower”…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <ctype.h> | |
int main(void) { | |
int c; | |
for ( ; ; ) { | |
c = getchar(); | |
if (islower(c)){ | |
c=toupper(c); | |
}else{ | |
c=tolower(c); | |
}; | |
putchar(c); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment