Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_141205_CadenaValorNumerico
//Title of this code #include <stdio.h> int main(void) { char numero[20]; long n; short oKnumero, i; do { printf("Dame un numero ... "); gets(numero); for(i = 0 , oKnumero = 0 ; numero[i] ; i++) { if(!isdigit(numero[i])) oKnumero = 1; } }while(oKnumero); for(n = i = 0 ; numero[i] ; i++) { n *= 10; n += numero[i] - '0'; } printf("numero: %ld\n\n", n); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
22nd HW Switchv0.1
pth_monte_carlo_pi.c
20171103_Digitos
detonadisimo
1.7 Test parallel function
B_141128_MatrizProducto
18BCE2182 ASSESS_1 Q1-7
A_141124_arrayMaxMin01
3D ..
C list
Please log in to post a comment.