O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 17 de 18 · Mídia

Practice Makes Perfect

Kostas Diakogiannis

Practice Makes Perfect

D5 - Practice Makes Perfect

 

1. Write a program that accepts a number, and print to the console if its negative, positive or 0.

2. Write a program that reads a number and return it's opposite. If 5 returns -5. If -12 returns 12 etc. Do it without using the native Math object, only with if statements (or even without).

3. Write a program that accepts 5 inputs as numbers. Calculate the sum and the average of them.

4. Write a program that accepts 3 numbers and prints the biggest of them.

5. Store a year in a variable and check if this year is a leap year (366 days) given that leap years  are 2016, 2012, 2008, 2004, 2000 etc. Print to the console 'yes' or 'no' accordingly.

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?