Eligible to Vote?

monif64 · August 01, 2020 · PHP
<?php
$current_age = 15;

if($current_age >=18)
{
    echo "You are $current_age. You are eligible to vote. Congrats.";
}

if($current_age < 18)
{
    echo "You are $current_age. You are not eligible to vote. Sorry.";
}
?>

Comments

Please sign up or log in to contribute to the discussion.