Distance

Report a typo

Write a program that reads the distance between two cities in miles and the travel time by bus in hours and outputs the average speed of the bus.

Note: there is NO need to give any explanations during input and output.

Sample Input 1:

100
2

Sample Output 1:

50.0
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// put your code here
}
}
___

Create a free account to access the full topic