Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //verificacoes.php
- function Verifica($idade, $sexo)
- {
- $retorno = "Não";
- if ($sexo == "M") {
- if ($idade >= 65) {
- $retorno = "Sim";
- }
- else {
- $retorno = "Não";
- }
- } else {
- if ($idade >= 60) {
- $retorno = "Sim";
- }
- else {
- $retorno = "Não";
- }
- }
- return $retorno;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment