C program to check whether a person is eligible for voting or not?
Given age of a person and we have to check whether person is eligible for voting or not.
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.
Consider the program:
It's a simple program and I hope your concept of checking a condition may clear, if there is any mistake then write your comment in the comment box.need an explanation for this answer? contact us directly to get an explanation for this answer