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 @@ + + +
+ +"; + +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 @@ + + +
+ + +Esse texto está no html
+ Esse texto está no PHP
"; + echo "O resultado é $resultado
"; + 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