title: While loop in Kotlin Programming Language
body: <p>In my kotlin code i am getting Type mismatch(inferred type is Int but Boolean was expected) error.</p>
  
  <pre><code>fun main(args: Array&lt;String&gt;) {
     var i = args.size 
     while (i--){
      println(args[i])
     }
  }
  </code></pre>