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