Blame lazarus/console/support/support.lpr

ab6427
program support;
ab6427
ab6427
var
ab6427
  s: string;
ab6427
ab6427
begin
ab6427
  Writeln('Have you any problem? (yes/no)');
ab6427
  Readln(s);
ab6427
  while s = 'yes' do begin
ab6427
    Writeln('Have you a problem with electronic devices? (yes/no)');
ab6427
    Readln(s);
ab6427
    if s = 'yes' then begin
ab6427
      Writeln('Have you a problem with TV? (yes/no)');
ab6427
      Readln(s);
ab6427
      if s = 'yes' then begin
ab6427
        Writeln('You must to go to TV master');
ab6427
      end else begin
ab6427
        Writeln('Have you a problem with computer? (yes/no)');
ab6427
        Readln(s);
ab6427
        if s = 'yes' then begin
ab6427
          Writeln('You must go to sysadmin');
ab6427
        end else begin
ab6427
          Writeln('I am sorry, I cannot help you.');
ab6427
        end;
ab6427
      end;
ab6427
    end else begin
ab6427
      Writeln('Have you a problem with teapot? (yes/no)');
ab6427
      Readln(s);
ab6427
      if s = 'yes' then begin
ab6427
        Writeln('Was you teapot broken? (yes/no)');
ab6427
        Readln(s);
ab6427
        if s = 'yes' then begin
ab6427
          Writeln('You must buy our super glue');
ab6427
        end else begin
ab6427
          Writeln('I am sorry, I cannot help you.');
ab6427
        end;
ab6427
      end else begin
ab6427
        Writeln('I am sorry, I cannot help you.');
ab6427
      end;
ab6427
    end;
ab6427
ab6427
    Writeln('Have you other problems? (yes/no)');
ab6427
    Readln(s);
ab6427
  end;
ab6427
ab6427
  Writeln('Good bye');
ab6427
  readln(s);
ab6427
end.