B - Can I Vote?
unknown
plain_text
17 days ago
292 B
3
Indexable
Never
#include<stdio.h> int main() { int n; printf("Enter Your Age : "); scanf("%d",&n); if(n<21){ printf("Sorry,you are too young to vote.\n"); }else if(n>=21 && n<23){ printf("Wait a little more to vote.\n"); }else if(n>=23){ printf("Yes,you can vote.\n"); } return 0; }
Leave a Comment