Question d’entretien chez Infosys

Write program to calculate average speed.