Advertisement
Guest User

java

a guest
Oct 27th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package tæl;
  2.  
  3. public class Tæl {
  4.  
  5. public static void main(String[] args) {
  6. int z, x, c;
  7. z=5;
  8. x=100;
  9. c=100;
  10. while (z>0) {
  11. z++;
  12. x=z-1;
  13. while (c!=0) {
  14. c=z%x;
  15. if (x==1) System.out.println(z);
  16. x--;
  17. }
  18. }
  19. }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement