From a67a58de6add561b7fc74d578bbc4f641203dcde Mon Sep 17 00:00:00 2001 From: 2024 - Gabriel Henrique Date: Thu, 21 May 2026 19:53:09 -0300 Subject: [PATCH] =?UTF-8?q?Declara=C3=A7=C3=A3o=20de=20vari=C3=A1veis=20e?= =?UTF-8?q?=20Condicional=20if=20else?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exemplos/gabriel_henrique/index.php | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 exemplos/gabriel_henrique/index.php diff --git a/exemplos/gabriel_henrique/index.php b/exemplos/gabriel_henrique/index.php new file mode 100644 index 0000000..d01272d --- /dev/null +++ b/exemplos/gabriel_henrique/index.php @@ -0,0 +1,30 @@ + + + + + + Document + + +

Aula 04

+

Esse texto está no html + Esse texto está no PHP

"; + echo "

O resultado é $resultado

"; + echo "

Aprovação (if-else)

"; + $nota = 5.5; //Declaração de variável + if ($nota > 6) { // Verifica se nota é maior que 6 + // Mostra mensagem de aprovação caso + // a nota seja maior que 6 + echo "

Aluno aprovado com nota $nota

"; + }else{ + // Mostra mensagem de reprovação caso + // a nota seja menor que ou igual a 6 + echo "

A nota $nota do aluno não foi o suficiente. Aluno reprovado

"; + }) + ?> + + \ No newline at end of file