fork download
  1. cars = 100
  2. space_in_a_car = 4
  3. drivers = 30
  4. passengers = 90
  5. cars_not_driven = cars - drivers
  6. cars_driven = drivers
  7. carpool_capacity = cars_driven * space_in_a_car
  8. average_passengers_per_car = passengers / cars_driven
  9.  
  10.  
  11. print "There are", cars, "cars available."
  12. print "There are only", drivers, "drivers available."
  13. print "There will be", cars_not_driven, "empty cars today."
  14. print "We can transport", carpool_capacity, "people today."
  15. print "We have", passengers, "to carpool today."
  16. print "We need to put about", average_passengers_per_car, "in each car."
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
There are 100 cars available.
There are only 30 drivers available.
There will be 70 empty cars today.
We can transport 120 people today.
We have 90 to carpool today.
We need to put about 3 in each car.