CAP/MiniC/TP04/tests/provided/dataflow/df03.c
2024-10-06 19:58:11 +02:00

18 lines
197 B
C

#include "printlib.h"
int main()
{
int n, u, v;
n = 6;
u = 0;
while (n > 1)
{
n = n - 1;
u = u + n;
}
println_int(u);
return 0;
}
// EXPECTED
// 15