Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {Волкович Максим (volkovcih.maksim.s@gmail.com), 112гр., v1.0,}
- function Sum(N: Integer): Integer;
- begin
- if N < 10 Then Sum := N
- else Sum := N mod 10 + Sum(N div 10)
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement