At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.
Sagot :
Answer:
see the code snippet below writing in Kotlin Language
Explanation:
fun main(args: Array<String>) {
sumOfNumbers()
}
fun sumOfNumbers(): Int{
var firstNum:Int
var secondNum:Int
println("Enter the value of first +ve Number")
firstNum= Integer.valueOf(readLine())
println("Enter the value of second +ve Number")
secondNum= Integer.valueOf(readLine())
var sum:Int= firstNum+secondNum
println("The sum of $firstNum and $secondNum is $sum")
return sum
}
We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Your questions are important to us at Westonci.ca. Visit again for expert answers and reliable information.