Chapathi Story Problem
A person named Viyan eats chapathis three times a day.
Breakfast: He eats 1/3 of the chapathis.
Lunch: He eats 1/3 of the remaining chapathis.
Dinner: He eats 1/3 of the remaining chapathis.
The next morning, 8 chapathis are remaining.
How many chapathis did the maid prepare originally?
remain = 8
dinner = remain * 3 // 2
lunch = dinner * 3 // 2
breakfast = lunch * 3 // 2
print("Total Chapathis:", breakfast)
Total Chapathis: 27

Top comments (0)