Perímetro de um retângulo
The mission is in Blocked Mode.
Access to the solutions is blocked for a day or two (even after you share your own), until we'll have enough solutions for you to check.
All users who've solved the mission will get the notifications about their opening.
Prática: Reforce o conhecimento adquirido. Aplique as técnicas aprendidas e repita os exercícios até se sentir confiante.
Enunciado
Crie uma função que receba a largura e a altura de um retângulo e retorne o perímetro do retângulo.
Entrada: Dois números inteiros: a largura e a altura do retângulo.
Saída: Um número inteiro indicando o perímetro do retângulo.
Exemplo:
perimetro_retangulo(2, 4) == 12 perimetro_retangulo(5, 10) == 30 perimetro_retangulo(3, 7) == 20
Habilidades
- Operações Aritméticas Básicas