GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
Tuesday, December 21, 2010
While Loop In Scala
To make a while loop, use:
scala> var i = 0;
scala> while(i<5){
| println(i+". Hello");
| i += 1; // doesn't work with i++
| }
0. Hello
1. Hello
2. Hello
3. Hello
4. Hello
While Loop In Scala
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment