Shivam.k

11
reputation
3
   fun main(){ 
   println("Hello Everyone")
   val helloResponse = readLine()
   println(returnReaction(helloResponse))
   println("Ask me anything you want to know about me.")
   var question = readLine()
   answer(question)
   }

   fun returnReaction(response: String) = if(response != null) return  else return 

   fun answer(yourquestion): String {
         When(yourquestion) {
         Name --> println("Shivam")
         Age --> println("Can't tell but I am young")
         Height --> println("I am tall maybe taller then you")
         Weight --> println("Don't ask me such questions")
         Hobby --> println("love to code and read webtoons")
         Occupation --> println("Still a student"
         Country --> println("India")
         else --> println("Didn't expect you ask that so this gift is for you ")
         }
   }