Advertisement
D98rolb

Hint 2077

Nov 10th, 2024 (edited)
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.38 KB | Source Code | 0 0
  1. program Project10;
  2.  
  3. {$APPTYPE CONSOLE}
  4.  
  5. {$R *.res}
  6.  
  7. uses
  8.   System.SysUtils;
  9.  
  10. var
  11.   source: string;
  12.   target, res: Integer;
  13. begin
  14.   try
  15.     source := '50';
  16. {$HINTS OFF}
  17.     Val(source, target, res);   // Hint 2077
  18. {$HINTS ON}
  19.     if res = 0 then
  20.       WriteLn('Success');
  21.   ReadLn;
  22.   except
  23.     on E: Exception do
  24.       Writeln(E.ClassName, ': ', E.Message);
  25.   end;
  26. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement