Advertisement
volkovich_maksim

t_12_11_v1_volkovich

Dec 19th, 2015
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.19 KB | None | 0 0
  1. {Волкович Максим (volkovcih.maksim.s@gmail.com), 112гр., v1.0,}
  2. function Sum(N: Integer): Integer;
  3. begin
  4.   if N < 10 Then Sum := N
  5.   else Sum := N mod 10 + Sum(N div 10)
  6. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement