Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Desafío: Factorial | Loops
Principios Básicos de Java

bookDesafío: Factorial

Tarea

Swipe to start coding

  1. Write a for loop that runs from 1 to n.
  2. Inside the loop, check if the current number is divisible by 3 or 5.
  3. If the number is not divisible by 3 or 5, add it to the sum variable.

Solución

solution.java

solution.java

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 8
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

Awesome!

Completion rate improved to 2.7

bookDesafío: Factorial

Desliza para mostrar el menú

Tarea

Swipe to start coding

  1. Write a for loop that runs from 1 to n.
  2. Inside the loop, check if the current number is divisible by 3 or 5.
  3. If the number is not divisible by 3 or 5, add it to the sum variable.

Solución

solution.java

solution.java

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

close

Awesome!

Completion rate improved to 2.7
Sección 3. Capítulo 8
single

single

some-alt