Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Desafio: Fatorial | Loops
Noções Básicas de Java

bookDesafio: Fatorial

Tarefa

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.

Solução

solution.java

solution.java

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 8
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Resumir este capítulo

Explicar o código em file

Explicar por que file não resolve a tarefa

close

Awesome!

Completion rate improved to 2.7

bookDesafio: Fatorial

Deslize para mostrar o menu

Tarefa

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.

Solução

solution.java

solution.java

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

close

Awesome!

Completion rate improved to 2.7
Seção 3. Capítulo 8
single

single

some-alt