Skip to main content

Q1 — Validate Student Name

Accept a name and check if it contains only alphabetical characters.

Q2 — Candy Distribution

Calculate how many candies each friend gets and the leftover count.

Q3 — Eid Gift Boxes

Determine total gifts and overall cost for Eid celebrations.

Q4 — Marathon Calorie Calculator

Calculate calories burned by a marathon runner based on distance.