mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			254 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			254 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ run-pass
 | 
						|
 | 
						|
 | 
						|
pub fn main() {
 | 
						|
    let mut x: isize = 10;
 | 
						|
    let mut y: isize = 0;
 | 
						|
    while y < x { println!("{}", y); println!("hello"); y = y + 1; }
 | 
						|
    while x > 0 {
 | 
						|
        println!("goodbye");
 | 
						|
        x = x - 1;
 | 
						|
        println!("{}", x);
 | 
						|
    }
 | 
						|
}
 |