Solución
solution.tsTypeScript
export function sumMultiples(n: number): number {
// Escribe tu solución aquí
let count = 0
for(let i = 0; i < n; i++){
if(i % 3 === 0 || i % 5 === 0){
count += i
}
}
return count
}0respuestas
export function sumMultiples(n: number): number {
// Escribe tu solución aquí
let count = 0
for(let i = 0; i < n; i++){
if(i % 3 === 0 || i % 5 === 0){
count += i
}
}
return count
}Aún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.