From dda56fe1a6e15e6450670bf03de16542cd5b32c6 Mon Sep 17 00:00:00 2001 From: Fernandafmsf Date: Wed, 4 Oct 2023 13:50:23 -0300 Subject: [PATCH 1/2] Finalizando desafio 2 --- .../php/Fernandafmsf/cubosimples.php | 1 + .../2-palindromos/php/Fernandafmsf/README.md | 22 +++++++++++++++++++ .../php/Fernandafmsf/palindromo.php | 18 +++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 challenges/2-palindromos/php/Fernandafmsf/README.md create mode 100644 challenges/2-palindromos/php/Fernandafmsf/palindromo.php diff --git a/challenges/1-cubo-simples/php/Fernandafmsf/cubosimples.php b/challenges/1-cubo-simples/php/Fernandafmsf/cubosimples.php index bfe1d806..43979927 100644 --- a/challenges/1-cubo-simples/php/Fernandafmsf/cubosimples.php +++ b/challenges/1-cubo-simples/php/Fernandafmsf/cubosimples.php @@ -2,6 +2,7 @@ $number= $argv; //funcao para percorrer todo o array. Definir a var $i como 1 é imprescindivel para o codigo funcionar, visto que $argv[0] é uma string (nome do projeto) +//count -> tamanho do array function calcularCubo($number) { for($i=1; $i Date: Wed, 4 Oct 2023 17:38:52 -0300 Subject: [PATCH 2/2] Adicionando helloworld --- challenges/0-hello-world/php/Fernandfmsf/helloworld.php | 2 +- challenges/2-palindromos/php/Fernandafmsf/palindromo.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/challenges/0-hello-world/php/Fernandfmsf/helloworld.php b/challenges/0-hello-world/php/Fernandfmsf/helloworld.php index a813e221..da373b33 100644 --- a/challenges/0-hello-world/php/Fernandfmsf/helloworld.php +++ b/challenges/0-hello-world/php/Fernandfmsf/helloworld.php @@ -1,2 +1,2 @@