tpara1.pp 479 B

12345678910111213141516
  1. function f(l1,l2,l3,l4,l5,l6,l7,l8,l9:longint):longint;
  2. begin
  3. f:=l1+l2+l3+l4+l5+l6+l7+l8+l9;
  4. end;
  5. var
  6. l : longint;
  7. begin
  8. l:=f(f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9));
  9. writeln('Got ',l,' expected ',9*(1+2+3+4+5+6+7+8+9));
  10. if l<>9*(1+2+3+4+5+6+7+8+9) then
  11. begin
  12. writeln('Error!');
  13. halt(1);
  14. end;
  15. end.