Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <iomanip>
- using namespace std;
- int main() {
- double length_playground;
- double width_plate;
- double length_plate;
- double width_bench;
- double length_bench;
- cin >> length_playground >> width_plate >> length_plate >> width_bench >> length_bench;
- double area_playground = length_playground * length_playground;
- double area_bench = width_bench * length_bench;
- area_playground = area_playground - area_bench;
- double area_plate = width_plate * length_plate;
- double count_plates = area_playground / area_plate;
- double needed_time = count_plates * 0.2;
- cout << fixed << setprecision(2) << count_plates << endl;
- cout << fixed << setprecision(2) << needed_time << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement