From 1e42a35fc13277a39457c7f0bc0c1b5ba4adcad1 Mon Sep 17 00:00:00 2001 From: 2024 - Gabriel Henrique Date: Wed, 20 May 2026 21:21:32 -0300 Subject: [PATCH 1/4] Altera o texto de exemplo --- exemplos/GabrielHenrique/teste.php | 3 +++ index.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 exemplos/GabrielHenrique/teste.php diff --git a/exemplos/GabrielHenrique/teste.php b/exemplos/GabrielHenrique/teste.php new file mode 100644 index 0000000..73b9822 --- /dev/null +++ b/exemplos/GabrielHenrique/teste.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/index.php b/index.php index 5e5539b..f16dea1 100644 --- a/index.php +++ b/index.php @@ -1 +1 @@ - Date: Thu, 21 May 2026 19:53:09 -0300 Subject: [PATCH 2/4] =?UTF-8?q?Declara=C3=A7=C3=A3o=20de=20vari=C3=A1veis?= =?UTF-8?q?=20e=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 From 220741c303948f9c7d5744e920e8ecedab16211b Mon Sep 17 00:00:00 2001 From: 2024 - Gabriel Henrique Date: Thu, 21 May 2026 20:30:21 -0300 Subject: [PATCH 3/4] Realizado desafio if-else --- exemplos/gabriel_henrique/desafio-if-else.php | 31 +++++++++++++++++++ .../{index.php => variaveis.if.else.php} | 3 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 exemplos/gabriel_henrique/desafio-if-else.php rename exemplos/gabriel_henrique/{index.php => variaveis.if.else.php} (99%) diff --git a/exemplos/gabriel_henrique/desafio-if-else.php b/exemplos/gabriel_henrique/desafio-if-else.php new file mode 100644 index 0000000..77bd70b --- /dev/null +++ b/exemplos/gabriel_henrique/desafio-if-else.php @@ -0,0 +1,31 @@ +Aluno 1:

"; + +if ($presencasAluno1 >= $minimoPresencas) { + echo "

Sua frequência é suficiente. Aprovado!

"; +} else { + echo "

Sua frequência é insuficiente. Reprovado!

"; +} + +//Caso 2: Aluno Reprovado +$presencasAluno2 = 2; + +echo "

Aluno 2:

"; + +if ($presencasAluno2 >= $minimoPresencas) { + echo "

Sua frequência é suficiente. Aprovado!

"; +} else { + echo "

Sua frequência é insuficiente. Reprovado!

"; +} + +?> \ No newline at end of file diff --git a/exemplos/gabriel_henrique/index.php b/exemplos/gabriel_henrique/variaveis.if.else.php similarity index 99% rename from exemplos/gabriel_henrique/index.php rename to exemplos/gabriel_henrique/variaveis.if.else.php index d01272d..d15825f 100644 --- a/exemplos/gabriel_henrique/index.php +++ b/exemplos/gabriel_henrique/variaveis.if.else.php @@ -24,7 +24,8 @@ // 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 From 781602af9328c719555727de8565a702eb61df01 Mon Sep 17 00:00:00 2001 From: 2024 - Gabriel Henrique Date: Thu, 21 May 2026 21:13:49 -0300 Subject: [PATCH 4/4] Desafio for --- exemplos/gabriel_henrique/desafio-for.php | 33 +++++++++++++++++++++++ exemplos/gabriel_henrique/for.php | 5 ++++ 2 files changed, 38 insertions(+) create mode 100644 exemplos/gabriel_henrique/desafio-for.php create mode 100644 exemplos/gabriel_henrique/for.php diff --git a/exemplos/gabriel_henrique/desafio-for.php b/exemplos/gabriel_henrique/desafio-for.php new file mode 100644 index 0000000..4784fcc --- /dev/null +++ b/exemplos/gabriel_henrique/desafio-for.php @@ -0,0 +1,33 @@ + + + + + Contagem Regressiva + + + + += 1; $i--) { + + // Destacar os 3 últimos segundos + if ($i <= 3) { + echo "

$i

"; + } else { + echo "

$i

"; + } +} + +// Mensagem final +echo "

FOGUETE LANÇADO!

"; + +?> + + + \ No newline at end of file diff --git a/exemplos/gabriel_henrique/for.php b/exemplos/gabriel_henrique/for.php new file mode 100644 index 0000000..a974b6c --- /dev/null +++ b/exemplos/gabriel_henrique/for.php @@ -0,0 +1,5 @@ +"; +} +?> \ No newline at end of file