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
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
Social Sciences,
17 hours ago
Math,
17 hours ago
Accountancy,
1 day ago
History,
8 months ago
Environmental Sciences,
8 months ago
Science,
8 months ago