Twitter Facebook Delicious Digg Stumbleupon Favorites More

Friday, 20 July 2018

kotlin conditional operator

fun main(args:Array<String>)
{
   val firstno=5    val secondno=6

    println(firstno>secondno) //return a boolear true or false
    println(firstno<secondno)

    println(firstno==secondno)
    println(firstno!=secondno)
    println(firstno<=secondno)
    println(firstno>=secondno)


}
  • OUTPUT >> 
  • false
  • true
  • false
  • true
  • true
  • false
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