Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int age;
  7. printf("give me your age:\n");
  8. scanf("%d",&age);
  9. if (age >65){
  10. printf("Overgrown\n");
  11. }
  12. else if ( age < 18){
  13. printf("Under 18\n");
  14. }
  15. else {
  16. printf("adult\n");
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement