const double time=0.5;
int number;
cout << "Enter number of station:";
cin >> number;
double res = 0;
while (number)
{
}
cout << "Time to distance " << res << " h" << endl;
system("pause");
int number;
cout << "Enter number of station:";
cin >> number;
double res = 0;
while (number)
{
res += time;
number--;
}
cout << "Time to distance " << res << " h" << endl;
system("pause");
Комментариев нет:
Отправить комментарий