summaryrefslogtreecommitdiff
path: root/tests/pracownia3/009_while_while_sum.xi
blob: abb029ccfb16bfef419c945f54cf41bb3b032cde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
main():int
{
    i:int = 0;
    n:int = 10;
    sum:int = 0;
    while (i < n) {
        j:int = 0
        while (j < n) {
            sum = sum + j
            j = j + 1
        }
        i = i + 1
    }
    return sum
}

//@PRACOWNIA
//@out Exit code: 450