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.
project menu
Project 3 Part 1 v1.4
Loop-worksharing
18BCE2182 ASSESS_2 Q1
second P
PREGUNTA 10 CADENAS
SAI_1-6.c
-Wall
time clock and day count through seconds by ratneshgujarathi
Project 3 Part 1 v0.5
Please log in to post a comment.