Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 453 Bytes

File metadata and controls

16 lines (15 loc) · 453 Bytes
class BlockTest{
    public static void main (String[] args){
        int x ,y;
        y = 20;
        // the target of this loop is a block
        for (x = 1; x < 11; x++){
            System.out.println("This is x: " +x);
            System.out.println("This is y: " +y);//kiírja mert a for ciklus belsejében van
            y = y -2;//és elvesz belőle mindig 2-öt ez is a for belsejében
            //x = x +1;
        }
    }
}