Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
UDP - Male/Velke pismena
//clang 6.0.0 #include <stdio.h> #define N 20 int main(void) { char pole[N+1]; scanf("%s\n", &pole); printf("%s\n", pole); int i = 0; int upper = 0; while(pole[i] != '\0'){ if(isupper(pole[i])) { ++upper; pole[i] = tolower (pole[i]); printf("%s\n", pole[i]); } ++i; if(pole[i]>=65 && pole[i]<=90) { ++upper; pole[i] += 32; } i++; } printf("%s\n", pole); printf("Retezec obsahuje %d velkych pismen ve %d znacich.\n", upper, i); return 0; }
run
|
edit
|
history
|
help
0
Herout (67) - 6
Vzdalenost
Vectores: bidimensionales con sizeof
c_tests
Vectores: Dos vectores rellenos al azar
Bucles: Suma de n números tecleados hasta introducir 0
CV09-2.1
Herout (67) - 2+
Calculating Square root in c
Triángulo Asteriscos