write a java program to find the speed of a car shen dilstance is 80 km with proper messages
Answers
Answered by
0
class Program1
{
static void main()
{
int d = 80 ; //Put the distance value
int t = ; //Put the time value since i dont know it
double s; //double because sometimes the output might come a
//fraction
s = (d/t);
System.out.println("The speed of the car is = " + s " km/hr ");
}
}
/*
OUTPUT
The speed of the car is = 80*t km/hr
*/
Similar questions