Ahlisihir

program loading bar pada pascal

Aug 10th, 2016
3,419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.57 KB | None | 0 0
  1. uses crt;
  2. var
  3. x,z : integer;
  4. begin
  5.      clrscr;
  6.      gotoxy(36,10);
  7.      writeln('Loading..');
  8.      gotoxy(29,13);
  9.      writeln('---------------------');
  10.      gotoxy(29,14);
  11.      writeln('|');
  12.      gotoxy(50,14);
  13.      writeln('|');
  14.      gotoxy(29,15);
  15.      writeln('---------------------');
  16.  
  17.      for x:=1 to 100 do
  18.     begin
  19.           delay(90);
  20.           gotoxy(38,12);
  21.           writeln(x,' %');
  22.  
  23.           if(x mod 5=0) then
  24.         begin
  25.               z:=z+1;
  26.               gotoxy(29+z,14);
  27.               writeln('=');
  28.           end;
  29.      end;
  30.      readln;
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment