summary refs log tree commit diff
path: root/tests/pracownia4/pracownia3/019_while_sum.xi
blob: 8821a07435b48a15f046664272cab745270c477f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
main():int
{
    i:int = 0;
    n:int = 10;
    sum:int = 0;
    while (i < n) {
        sum = sum + i
        i = i + 1
    }
    return sum
}

//@PRACOWNIA
//@out Exit code: 45