- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
program Oracle;
{$APPTYPE CONSOLE}
uses
SysUtils;
Var
sQuestion : String;
i : ShortInt;
bAnswer : Boolean;
Label lExit, lAnswer;
BEGIN
bAnswer := true;
WriteLn('Input question: ');
lAnswer: Read(sQuestion);
If Length(sQuestion) < 4 then
Begin
WriteLn('What "' + sQuestion + '"?');
Goto lAnswer;
End;
If sQuestion[Length(sQuestion)] <> '?' then
Begin
WriteLn('It`s not a question.');
Goto lExit;
End;
Randomize;
If Random(10) = 1 then
Begin
WriteLn('But why you ask?');
Goto lExit;
End;
For i := 1 to Length(sQuestion) do
If bAnswer = true then bAnswer := false
Else bAnswer := false;
If bAnswer = true then WriteLn('Yes.')
Else WriteLn('No.');
lExit: Readln;
END.
> But why you ask? (русс. А почему вы спрашиваете?)
вместо собеседника самописный бот,
вместо собутыльника зеркало
вместо подруги - резиновое изделие
что бы никто не обижался: писал с себя )))
сама чистится, сама чинится
Нанотехнологии?