2011-06-15 18:19:50 +00:00
|
|
|
|
|
|
|
|
2010-11-04 14:55:33 +00:00
|
|
|
fn main() {
|
2011-07-27 12:19:39 +00:00
|
|
|
let x: int = 10;
|
|
|
|
let y: int = 0;
|
|
|
|
while y < x { log y; log "hello"; y = y + 1; }
|
|
|
|
do { log "goodbye"; x = x - 1; log x; } while x > 0
|
2010-11-04 14:55:33 +00:00
|
|
|
}
|