CAP/MiniC/TP04/tests/provided/dataflow/df03.c

18 lines
197 B
C
Raw Normal View History

2024-10-06 19:58:11 +02:00
#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