Twitter Facebook Delicious Digg Stumbleupon Favorites More

Sunday, 22 July 2018

kotlin while loop



fun main(args:Array<String>)
{
    var counter =0    while (counter<=5)
    {
        println("counting ...$counter")
        counter++ // counter counter+1    }
    println("out of loop")
}
  • counting ...0
  • counting ...1
  • counting ...2
  • counting ...3
  • counting ...4
  • counting ...5
  • out of loop
Share:

0 comments:

Post a Comment

Search This Blog

Popular Posts

Pages

how to make crores from 1 lakh in stock markets in 1 year

how to make crores from 1 lakh in stock markets in 1 year

Blogger Tutorials

Blogger Templates

Sample Text

Copyright © ANDROID TUTORIAL CODE | Powered by Blogger
Design by SimpleWpThemes | Blogger Theme by NewBloggerThemes.com & Distributed By Protemplateslab