Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Сумма цифр в строке
// Находим сумму цифр в строке const digit = ['0'..'9']; var s : string; var sum, i : integer; begin sum := 0; readln (s); i := 1; while s[i] <> '.' do // for i := 1 to length(s) do begin if s[i] in digit then sum := sum + ord(s[i]) - ord('0'); i += 1 end; writeln (sum); end.
run
|
edit
|
history
|
help
0
test27
vd
How many letters?
Potenztabelle
Tri 1.0
sumar 2 valores
6
[DE/GER] Caesar Chiffre (Verschlüsseln)
solar system4 (update)
10