Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
503 B
1
Indexable
//Test for for/while loops and if-else

class test2 {
    int f(int a, int b) {
        while (a < b) {
            int c = 0;
            if (a > 0)
                for (int i = 0; i < 10; ++i)
                    while (i < 10) {
                        int y=1;
                        c = c + 1;
                    }
            else
                c = a - 1;
            a = a + 1;
        }
        return a++;
    }
    void main(){
        int y=f(1,2);
        System.out.println(y);
    }
}