What is the run result of the following code ? fun main(args: Array) { println(": == Pizza Order ======") %3D println("Enter the Pizza Size : 1=> Small Size, 2=> Medium Size, 3=> Large Size") var...



DO NOT COPY FROM OTHER WEBSITES


What is the run result of the following code ?<br>fun main(args: Array<String>) {<br>println(
Small Size, 2=> Medium Size, 3=> Large Size") var size= 3 var price:Int?? =null when (size) { 1-> price=5 2-> price=7 3-> price=10 else->println("You did not enter the correct size") } println("Total Price = $price" +" USD") } "/>
Extracted text: What is the run result of the following code ? fun main(args: Array) { println(": == Pizza Order ======") %3D println("Enter the Pizza Size : 1=> Small Size, 2=> Medium Size, 3=> Large Size") var size= 3 var price:Int?? =null when (size) { 1-> price=5 2-> price=7 3-> price=10 else->println("You did not enter the correct size") } println("Total Price = $price" +" USD") }

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here