Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Cviceni 7 1 uloha ++upper,isupper
//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; } */ #include <stdio.h> #define radky 3 #define stloupce 6 int main(void) { int i=0, x=0 matA[radky][stloupce], matB[radky][stloupce], int matC[radky][stloupce]; matA[radky][stloupce]= }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
C99 doesn't allow initializers in if-conditions, so this does not compile.
Bucles: Mayor de n números hasta teclear 0
Numero pi
Detecta vocales
Vectores: Burbuja ordenación
Día de la semana
Cuadrado asteriscos hueco con regalito
Herout (67) - 3
prog0
VKI_Mihalyk_3_2
stackse - search stackoverflow differently
Please log in to post a comment.