Compute: z / y
Ex: If the input is 5.0 1.0, then the output is 8.0
import java.util.Scanner;
public class MathFunctions {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
double x;
double y;
double z;
x = scnr.nextDouble();
y = scnr.nextDouble();
/* Your code goes here */
System.out.printf("%.1f\n", z); // This will output z with 1 decimal place.
}
}