Mercurial > projects > dang
view tests/code/while_2.d @ 206:d3c148ca429b
Major moving of files. all src now goes into src, all docs in docs.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 18:14:56 +0200 |
parents | 6282db07115f |
children |
line wrap: on
line source
int main() { int x = 10; int res = 0; while (x > 0) { res = res + x; x = x - 1; } if (res == 55) return 0; return 1; }