Loading Company...
This is a verified interview question from Tcs-nqt. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Gym Fees Calculator" covers key patterns like Other.
"Plans: 3 months = 5000 6 months = 9000 9 months = 12000 12 months = 15000 Given N months, calculate total cost based on priority: 12 → 9 → 6 → 3 If not divisible by 3, print "Error""
Join thousands of developers practicing for Tcs-nqt.