Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
practica 2 ejercicio 3
//fpc 3.0.4 program HelloWorld; var num,dig:integer; suma:integer; n:boolean; begin readln(num); suma:= num; n:= true; while (n) do begin num:=suma; suma:=0; while num <> 0 do begin dig:= num mod 10; suma:= dig+suma; num:= num div 10; end; n:= (suma div 10 <> 0); end; writeln(suma); end.
run
|
edit
|
history
|
help
1
считалочка03
BubbleSor (slimmer)
Object Pascal
Calculatrice (case of)
TAIRINE GOMES NEPOUMUCENO 600624521
222
test27
practica 6 ejercicio 4
test30
09