2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2010-11-04 09:55:33 -05:00
|
|
|
fn main() {
|
2012-03-22 10:39:41 -05:00
|
|
|
let mut x: int = 10;
|
|
|
|
let mut y: int = 0;
|
2011-12-22 19:53:53 -06:00
|
|
|
while y < x { log(debug, y); #debug("hello"); y = y + 1; }
|
2011-12-22 16:42:52 -06:00
|
|
|
do {
|
|
|
|
#debug("goodbye");
|
|
|
|
x = x - 1;
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, x);
|
2011-12-22 16:42:52 -06:00
|
|
|
} while x > 0
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|