Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tests2;
- public class asd {
- public static void main(String[] args) {
- int counter=0;
- int s=0;
- int n = 30;
- for (int x = 5; x < 2 * n; x++) {
- for (s = (x + 1) % 2; s < x + 2; s += 2) {
- counter++;
- }
- System.out.println("counter: "+counter+" x: "+x+" s:"+s);
- counter=0;
- }
- }
- }
Advertisement