Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Code1
program HelloWorld; var N, digit, maxDigit: longint; begin readln(N); maxDigit:=-1; while N>0 do begin digit:=N mod 10; if digit mod 5 = 0 then if digit > maxDigit then maxDigit:=digit; N:= N div 10; end; if maxDigit >=0 then writeln(maxDigit) else writeln('NO'); end.
run
|
edit
|
history
|
help
0
buscar_numero_V2_divisible_5
Урок 4 задача 7
JESSICA GOMES DE SOUZA FERREIRA 600621634
Урок 3, задача 8 (1481). Покупка
dz_lesson_17
nomer4
ariketa 05
Calculatrice 2.0
4
practica 7 ejercicio B2