C#: Determine a specific age is eligible for casting the vote
Write a C# Sharp program to read age of a candidate and determine whether it is eligible for casting his/her own vote.
Sample Solution:-
C# Sharp Code:
Sample Output:
Detrermine a specific age is eligible for casting the vote: ---------------------------------------------------------- Input the age of the candidate : 18 Congratulation! You are eligible for casting your vote.
Visual Presentation:
Flowchart:

C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a C# Sharp program to find whether a given year is a leap year or not.
Next: Write a C# Sharp program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0 when m is 0 and -1 when m is less than 0.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.