Write a C++ Program to check whether the candidate's age is greater than 17 or not if yes,display message "Eligible For voting"


SUBMITTED BY: Nrupeshsinh

DATE: June 25, 2016, 12:11 p.m.

FORMAT: Text only

SIZE: 238 Bytes

HITS: 400

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. int age;
  7. cout<<"Enter your Age :";
  8. cin>>age;
  9. if(age>17)
  10. {
  11. cout<<"Eligible For voting";
  12. }
  13. else
  14. {
  15. cout<<"Not Eligible For voting";
  16. }
  17. getch();
  18. }

comments powered by Disqus