Factory Production (Rate Calculation)

E · easyP · Verified PYQmath

A factory produces X units in 24 days. How many units will it produce in D days? Input: X and D on separate lines.

Input
48
15
Output
30
units = (X \* D) // 24. Use integer or float division based on expected output.
Rate = 48/24 = 2/day. In 15 days: 2\*15 = 30.
← Factorial of a NumberFibonacci Series (First N Terms) →
Report an issue with this question