GamerSK

Rastúce Čísla

Feb 14th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.36 KB | None | 0 0
  1. program rastucecisla;
  2. {$APPTYPE CONSOLE}
  3. uses SysUtils;
  4. var c,pc:byte;
  5. begin
  6.   { TODO -oUser -cConsole Main : Insert code here }
  7.   pc:=0;
  8.   repeat
  9.     write('Zadajte cislo (zadavanie ukoncite 0): ');
  10.     readln(c);
  11.     if c>pc then writeln('Cislo ',c,' narasta!')
  12.        else writeln('Cislo ',c,' nenarasta!');
  13.     pc:=c;
  14.   until c=0;
  15.   readln;
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment