Advertisement
labib24

Untitled

Jan 13th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a;
  5.     printf("Enter age : ");
  6.     scanf("%d",&a);
  7.     if(a>=18)
  8.     {
  9.         printf("Congratulation! You are eligible for casting your vote.\n");
  10.     }
  11.     else
  12.     {
  13.         printf("Sorry,you are not yet eligible.\n");
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement