Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string movie;
- getline(cin, movie);
- int days, tickets;
- cin >> days >> tickets;
- double ticketPrice;
- cin >> ticketPrice;
- int percent;
- cin >> percent;
- double price = days * tickets * ticketPrice * (100 - percent) / 100;
- printf("The profit from the movie %s is %.2f lv.", movie.c_str(), price);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement