Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
5 trabajo semanal 4
//gcc 5.4.0 #include <stdio.h> int main(void) { long int N; long int CopiaN; short digito; long int Ninvertido; long int C; printf("El valor de N es..."); scanf(" %ld", &N); CopiaN = N; Ninvertido = 0; while( CopiaN !=0) { digito = CopiaN % 10; CopiaN = CopiaN /10; Ninvertido = Ninvertido * 10 + digito; } while( Ninvertido !=0) { C = Ninvertido % 10; printf(",%ld",C); Ninvertido = Ninvertido / 10; } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
json string formatter
B_141104_NotaSwitch
KN king Array ques
MEMORIA DINAMICA FUNCIONA
B_141202_PALINDROMO
Lab 9 v0.9
Add.c
LECTURA DE CADENAS CON FGETS
lol
Array Struct, Call-By-Reference, Malloc, Free, Init, Destroy ... Example
Please log in to post a comment.