Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141203_CadenasVarias
//Title of this code #include <stdio.h> #include <ctype.h> #include <string.h> #define _T 100 int main(void) { char c1[_T]; char c2[_T]; char c3[_T]; char c4[_T]; char c5[_T]; short i, j; printf("Cadena 1: "); gets(c1); strcpy(c2, c1); for(i = 0 ; c1[i] != 0 ; i++) { c3[i] = toupper(c1[i]); } c3[i] = 0; for(i = 0 , j = 0 ; c1[i] ; i++) { if(isalnum(c1[i])) { c4[j++] = c1[i]; } } for(i = 0 ; i < strlen(c1) ; i++) { c5[strlen(c1) - 1 - i] = c1[i]; } c5[i] = 0; printf("\ncadena 1: %s\n", c1); printf("cadena 2: %s\n", c2); printf("cadena 3: %s\n", c3); printf("cadena 4: %s\n", c4); printf("cadena 5: %s\n", c5); return 0; }
run
|
edit
|
history
|
help
0
FloatInt
Smartprix coding
time conversion1
Serie de Fibonacci
3D NO SE XD
PREGUNTA 3 - MODULO 4 TERMINADA
Michael Bean's Spring 2017 Lab 3 v1
4
thermal_containers
Matrix rotation 90-degree