The simple loop

A simple form of the loop is called loop:

loop 
{ 
    println!("Hello"); 
} 

The preceding code has no loop-ending keywords, such as break; it will output Hello until the application is terminated manually.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset