/////////////////////////////////////////////////////////////////////
// This program reads a number of rooms and the number of seats in //
// a room and prints the total number of seats.                    //
// Roger Hartley, September 1999                                   //
/////////////////////////////////////////////////////////////////////

#include <iostream>

int main() {

  // give the user general instructions
  cout << "Press return after entering a number." << endl;
  
  // ask the user for the number of pods
  cout << "Enter the number of rooms:" << endl;
  int numberOfRooms;
  cin >> numberOfRooms;

  // ask the user for the number of seats in each room
  cout << "Enter the number of seats in a room:" << endl;
  int seatsPerRoom;
  cin >> seatsPerRoom;
  
  // calculate the total number of peas
  int totalSeats;
  totalSeats = numberOfRooms * seatsPerRoom;
  
  // print the result
  cout << "If you have ";
  cout << numberOfRooms;
  cout << " rooms " << endl;
  cout << "and ";
  cout << seatsPerRoom;
  cout << " seats in each room, then" << endl;
  cout << "you have ";
  cout << totalSeats;
  cout << " seats in all the rooms." << endl;
  
  return 0;
}

