Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.    int age;
  6.    
  7.    printf("Enter your age: \n");
  8.    scanf("%d", &age);
  9.    
  10.    if (age>=18 && age<=30)
  11.    printf("You can join");
  12.    else
  13.    printf("You are not allowed to join");
  14.    
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement