Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tæl;
- public class Tæl {
- public static void main(String[] args) {
- int z, x, c;
- z=5;
- x=100;
- c=100;
- while (z>0) {
- z++;
- x=z-1;
- while (c!=0) {
- c=z%x;
- if (x==1) System.out.println(z);
- x--;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement