2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2010-11-04 09:55:33 -05:00
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05: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
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|