Dsa
Math
Easy
Sum of Multiples
Given a positive integer n, calculate the sum of all multiples of 3 and 5 that are less than n. If n is less than 3, return 0.
Example Input:
10
Example Output:
23
Key concepts
mathloopingconditionals
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now