Advertisement
AntoSVK

prvocisla

Nov 25th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.33 KB | None | 0 0
  1. program prvocisla;
  2. uses crt, dos;
  3.  
  4.  
  5.  
  6.  
  7. begin
  8. for i:= 2 to trunc(qwrt(cislo)) do
  9. if (cislo mod i) = 0 then
  10.         begin
  11.         rozhodnutie:='Zadane cislo '+ scislo+' NIE JE prvocislom.');
  12.         break;
  13.         end;
  14. if cislo:= then rozhodnutie:='Zadane cislo'+scislo+' JE prvocislom');
  15.  
  16.  
  17.  
  18. repeat until keypressed;
  19. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement