Topics
Published on October 16, 2017 by ProgrammingKnowledge
Want create site? Find Free WordPress Themes and plugins.

Find code here : www.codebind.com/scala/scala-while-and-do-while-loops/
So what is a loop ?
loops allow us to execute a statement or a block of statements multiple times. Like conditional statements, they are controlled by boolean expressions.

The while Statement

A while statement has the following syntax:
If the condition is true, the statement is executed
Then the condition is evaluated again, and if it is still true, the statement is executed again
The statement is executed repeatedly until the condition becomes false

The do Statement

The body of a do loop executes at least once

————————-Follow——————-
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

3 Comments on "Scala Tutorial 8 – Scala while Loop and do-while Loop"

Notify of
avatar

Franz Tech
Guest
Franz Tech
29 days 20 hours ago

Hello programming knowledge, I'm writing you but not about this video but another (C# Local Dabase ) I don't have your email etc. Infact i"m programming a POS for my school Cantine (I'm 14yrs old ) I decided to build it in c# and in SQL, but I asking if it possible to use a local database and after when I give it to the school would they need to reinstall in visual studio or not thanks for answeringFranz franztech.tuto@gmail . com From Germany

Just Account
Guest
Just Account
1 month 2 days ago

I found your c tutorial and thanks to that now I know c very well. Happy to see you are still doing videos. Thanks for videos.

Nunya Dambidnis
Guest
Nunya Dambidnis
1 month 2 days ago

I LOVE YOU VIDEOS. kEEP THEM COMING

wpDiscuz