[tex]v = \frac{d}{t}\\[/tex]
[tex]t = \frac{d}{v}[/tex]
1 Km metru pe sapramana = 1000 m / 7 zile = 1000 m / 168 ore = 125 m / 21 de ore
Deci t(ore) = d(metrii) * 21 / (125 * v(Km/saptamana)
#include <iostream>
using namespace std;
int main(){
float v,d,t;
cout << "Viteza : ", cin >> v;
cout << "Distanta : ", cin >> d;
t = (d*21)/(125*v);
cout << "Timp necesar : " << t;
}