Guest User

Untitled

a guest
May 22nd, 2012
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.30 KB | None | 0 0
  1. var cislo, mocnina,i,vysledok: integer;
  2. begin
  3. cislo:= strtoint (edit1.Text);
  4. mocnina:= strtoint (edit2.Text);
  5. vysledok:=1;
  6. if (cislo=0) and (mocnina=0) then showmessage ('ne')
  7. else
  8. for i:= 1 to mocnina do
  9. begin
  10.   vysledok:= vysledok * cislo;
  11.  
  12. end;
  13. label1.Caption:= inttostr (vysledok);
  14. end;
  15.  
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment