summaryrefslogtreecommitdiff
path: root/base/ex41.java
blob: e07e9620923c498a15a01cb44ca4a30d05c2de7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class ex41 {
    public static void main(String[] z) {
        A a ;
        a = new A() ;
        System.out.println(a.foo()) ;
    }
}

class A {

    public int foo() {
        int v ;
        int w ;
        v = 0 ;
        w = 0 ;
        while (v < 10) {
            while (w < 100) {
                w = w + 1 ;
            }
            v = v + 1 ;
        }
        return w ;
    }

}