SaveText.Ru

Без имени
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.         int v, t, answer;
  6.         cout << "input speed" << endl;
  7.         cin >> v;
  8.         system("cls");
  9.         cout << "input time" << endl;
  10.         cin >> t;
  11.         system("cls");
  12.         answer = v * t;
  13.         answer = answer % 109 + 109;
  14.         answer %= 109;
  15.         cout << answer << endl;
  16.         system("pause");
  17.         return 0;
  18. }

Share with your friends:

Распечатать