Problem Description
In Math, I am sure all of your would have known the equation of a straight line in a graph: y = mx + c. Your task is to now to create a program that finds the x-intercept of the line provided the line is in the form y = mx + c.
Input
The input will consists of 2 integers, m followed by c, where the equation of the straight line is y = mx + c.
m and c can all fit into 32-bit signed integers and m will not be 0.
Output
Output, on a single line, the x-intercept of the line, rounded to 1 decimal place.
Sample Input 1
5 2
Sample Output 1
-0.4
Sample Input 2
-5 2
Sample Output 2
0.4