Added an id to each byte-cell to use with bit vectors.
[sixpic.git] / tests / general / sigma.c
blob2c99e1b5e6bedc136e5160cad9d89d7edd1fed94
1 int sigma (int n){
2 int res = 0;
3 while (n < n+1){
4 switch (n){
5 case 0:
6 return res;
7 case 1:
8 res++;
9 /* break; */
10 n--;
11 continue;
12 default:
13 res = res + n;
15 n--;
17 return res;
20 sigma(5);