Twitter Facebook Delicious Digg Stumbleupon Favorites More

Thursday 19 July 2018

kotlin read line method

fun main(args:Array<String>)
{
    println("==========================")
    println("-->WELCOME TO OUR SHOP<--")
    println("==========================")
    println("HELLO WHAT CAN WE DO FOR YOU")
    var customerResponse= readLine()
    println("yes indeed we have fresh bread off the oven")
    var customersecondresponse= readLine()
    println("==========================")
    println("==========================")

}
  • OUTPUT >>>
  • ==========================
  • -->WELCOME TO OUR SHOP<--
  • ==========================
  • HELLO WHAT CAN WE DO FOR YOU
  • hi
  • yes indeed we have fresh bread off the oven
  • no
  • ==========================
  • ==========================

  • Process finished with exit code 0
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