Advertisement
Spocoman

04. Vacation Books List

Aug 31st, 2023 (edited)
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int pages, pagesPerHour, daysToRead;
  7.     cin >> pages >> pagesPerHour >> daysToRead;
  8.  
  9.     int hoursPerDay = pages / pagesPerHour / daysToRead;
  10.  
  11.     cout << hoursPerDay << endl;
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement