Write a C program to check whether a person is eligible to vote or not – Programming, Pseudocode Example, C# Programming Example
C Programming

Write a C program to check whether a person is eligible to vote or not

In this tutorial we are writing a C Program to Check Eligibility for voting.

To check that a person is eligible for voting or not, we need to check whether person’s age is greater than or equal to 18. For this we are reading age in a variable a and checking the condition a>=18, if the condition is true, “person will be eligible for voting” else not.

C Program:

Output:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.