include <stdio.h>
include <stdlib.h>
include <string.h>
int main() { printf("Welcome to the age verification program.\n"); printf("Enter your name: ");
char name[16]; scanf(" %s", name); printf("Hey %s ! To continue please enter y and for abandoning enter n>>>>>> ", name);
char choice; scanf(" %c", &choice);
if(choice == 'y' ) { printf("Please enter your age now: ");
int age; scanf(" %d",&age); if(age >= 16) { printf("Thank You %s for completing the age verification. Since your age is %d you are eligible to participate.\n",name,age); } else if(age < 60) { printf("Sorry! But you are not eligible.\n"); }
} else if ( choice == 'n') { printf("Thank you for your patience\n"); } }
and your code worked very very fine!!! Great