Right equation

Report a typo

Write a function named isRightEquation() that takes three numbers and returns true if the product of the first two numbers is equal to the third number. Otherwise, it should return false.

Use the provided template.

Sample Input 1:

2
3
6

Sample Output 1:

true

Sample Input 2:

2
3
7

Sample Output 2:

false
Write a program in Kotlin
// write your code here

/* Do not change code below */
fun main() {
val a = readLine()!!.toInt()
val b = readLine()!!.toInt()
val c = readLine()!!.toInt()
println(isRightEquation(a, b, c))
}
___

Create a free account to access the full topic