all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
22
Task/User-input-Text/Delphi/user-input-text.delphi
Normal file
22
Task/User-input-Text/Delphi/user-input-text.delphi
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
program UserInputText;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses SysUtils;
|
||||
|
||||
var
|
||||
s: string;
|
||||
lStringValue: string;
|
||||
lIntegerValue: Integer;
|
||||
begin
|
||||
WriteLn('Enter a string:');
|
||||
Readln(lStringValue);
|
||||
|
||||
repeat
|
||||
WriteLn('Enter the number 75000');
|
||||
Readln(s);
|
||||
lIntegerValue := StrToIntDef(s, 0);
|
||||
if lIntegerValue <> 75000 then
|
||||
Writeln('Invalid entry: ' + s);
|
||||
until lIntegerValue = 75000;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue