comparison 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
comparison
equal deleted inserted replaced
205:8387cbaa85ab 206:d3c148ca429b
1 int main()
2 {
3 int x = 10;
4 int res = 0;
5 while (x > 0)
6 {
7 res = res + x;
8 x = x - 1;
9 }
10 if (res == 55)
11 return 0;
12 return 1;
13 }
14