Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.27 KB | None | 0 0
  1. var p1,p2,n:integer; z:char;
  2. begin
  3. label1.caption:='';
  4. z:='*';
  5. n:=strtoint(edit1.Text);
  6. for p1:=1 to n do
  7.   begin
  8.   if p1>1 then label1.caption:=label1.caption + #13;
  9.     for p2:=1 to p1 do
  10.       begin
  11.       label1.caption:=label1.caption +' '+z;
  12.       end;
  13.   end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement