I have a question and still wasn't sure if this is a corect answer!

Calculate the distance traveled by a car, time spent and average speed, given the initial and final distance and starting and ending times of travel. It is assumed that the journey begins and ends the same day and time taken (approximate in minutes). using a 24-hour clock. The formula for calculating the speed (v) is: v = e / t where (e) represents the space traversed and (t) time

What should i do next?

#include <iostream> using namespace std; float km_inicial; float km_final; float minutos_inicial; float minutos_final; int main() { cout << "Introduzca KM inicial: "; cin >> km_inicial; cout << "Introduzca KM final: "; cin >> km_final; cout << "Introduzca minutos inicial: "; cin >> minutos_inicial; cout << "Introduzca minutos final: "; cin >> minutos_final; cout << "\n"; cout << "Distancia en KM: " << (km_inicial - km_final) << "\n"; cout << "Tiempo en minutos: " << (minutos_inicial - minutos_final) << "\n"; cout << "Velocidad : " << (km_inicial - km_final) / (minutos_inicial - minutos_final) << "\n\n"; system("pause"); return 0; }

ModEdit:

Added code tags to your post. When posting code please use tags like below.