Advertisement
Spocoman

Series Calculator

Sep 22nd, 2023
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     string series;
  8.     getline(cin, series);
  9.  
  10.     int season, volume;
  11.     cin >> season >> volume;
  12.  
  13.     double time;
  14.     cin >> time;
  15.  
  16.     double minutes = (int)((double)season * volume * time * 1.2 + season * 10);
  17.  
  18.     cout << "Total time needed to watch the " << series << " series is " << minutes << " minutes.\n";
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement