Computer Science, asked by jyotishjeeya8694, 1 day ago

Mr. Amit travelled from his city to another city. Distance between the city is 231 km and he took 3 hours to reach to his destination. Write a program to calculate and print the speed of the Mr. Amit’s car

Answers

Answered by rekhanegi384
2

Answer:

public class travel

{

void mian( )

{

int dis,time;

dis=231 km;

time=3 hours;

int speed =0;

speed=dis/time;

System.out.println("The speed is"+speed);

}

}

Explanation:

pls mark me as brainliest

Similar questions