Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- using namespace std;
- #include <iomanip>
- #include <math.h>
- #include <cmath>
- int main()
- {
- int rows;
- int columns;
- string projection;
- cin >> projection;
- cin >> rows;
- cin >> columns;
- int seats = rows * columns;
- if (projection == "Premiere")
- {
- cout << fixed << setprecision(2) << (seats *12.00) << endl;
- cout << "leva" << endl;
- }
- else if (projection == "Normal")
- {
- cout << fixed << setprecision(2) << (seats * 7.50) << endl;
- cout << "leva" << endl;
- }
- else
- {
- cout << fixed << setprecision(2) << (seats * 5.00) << endl;
- cout << "leva" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement