B-tech-2-1/ClassWork/Java/Unit-1/2.An Overview of Java/5.BlockTest.java
/*
Demonstrate a block of code.
Call this file "BlockTest.java"
*/
class BlockTest {
    public static void main(String args[]) {
    int x, y;
    y = 20;
    // the target of this loop is a block
    for(x = 0; x<10; x++,System.out.println()) { //start of block
        System.out.println("This is x: " + x);
        System.out.println("This is y: " + y);
        y -= 2;
        }//end of block
    }
}