Find X

Report a typo

Write a program that reads three double values a, b, c, and solves this equation:

a * x + b = c

Output the value of x.

Guaranteed that a is not 0.

Sample Input 1:

2
-1
2

Sample Output 1:

1.5
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic