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/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/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/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 diff --git a/exemplos/gabriel_henrique/variaveis.if.else.php b/exemplos/gabriel_henrique/variaveis.if.else.php new file mode 100644 index 0000000..d15825f --- /dev/null +++ b/exemplos/gabriel_henrique/variaveis.if.else.php @@ -0,0 +1,31 @@ + + + + + + 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