Write a PHP program to check if a person is eligible to vote

code

<?php
$age=16;

if($age>=18) {
        echo $name . " you Are Eligible For Vote";
    } else {
        echo $name . "you are not eligible for vote. ";
    }
    ?>

output

you are not eligible for vote.

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post