Advertisement
CyberPascal

Untitled

Apr 28th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.17 KB | None | 0 0
  1. var i,k:integer;
  2.  
  3. begin
  4. k:=0;
  5. for i:=1 to 10000 do if (((i mod 4) <> 0) and ((i mod 5) <> 0) and ((i mod 6) <> 0) and ((i mod 7) <> 0)) then Inc(k);
  6. Writeln(k);
  7. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement