Cappuccino90 icon

Untitled

Cappuccino90 | PRO | 10/11/15 07:15:52 PM UTC | 0 ⭐ | 217 👁️ | Never ⏰ | []
Java |

420 B

|

None

|

0 👍

/

0 👎

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;
        }  
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎