Janilabo

Untitled

Aug 15th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.36 KB | None | 0 0
  1. var
  2.   t, i, a, b, success: Integer;
  3.  
  4. begin
  5.   WriteLn('Starting!');
  6.   t := GetSystemTime;
  7.   a := 1594;
  8.   for i := 0 to 10000000 do
  9.   begin
  10.     b := a;
  11.     b := (b + (a * 2));
  12.     b := (b - (a * 2));
  13.     if (b = a) then
  14.       Inc(success);
  15.   end;
  16.   WriteLn('time = ' + IntToStr(GetSystemTime - t));
  17.   WriteLn('Success  = ' + IntToStr(success));
  18. end.
Advertisement
Add Comment
Please, Sign In to add comment