GamerSK

Untitled

Oct 4th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.39 KB | None | 0 0
  1. procedure TForm1.Button11Click(Sender: TObject);
  2. var c,i,n:integer;
  3. begin
  4.   n:=strtoint(InputBox('Zadajte pocet opakovani','Zadajte pocet opakovani','0'));
  5.   for i:=1 to n do
  6.    begin
  7.      c:=strtoint(InputBox('Zadajte cislo','Zadajte cislo:','0'));
  8.      if c mod 2 = 0 then showmessage('Cislo '+inttostr(c)+' je parne')
  9.        else showmessage('Cislo '+inttostr(c)+' je neparne');
  10.    end;
  11. end;
Advertisement
Add Comment
Please, Sign In to add comment