Computer Science, asked by dharini83, 8 months ago

write a java program to find the speed of a car shen dilstance is​ 80 km with proper messages

Answers

Answered by SUBHAJIT08
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