diff --git a/Logic2.c b/Logic2.c new file mode 100644 index 0000000..92607bf --- /dev/null +++ b/Logic2.c @@ -0,0 +1,15 @@ +#include + +int main(){ + int i; + printf("To use the cinema discount, please verify your age: "); + scanf("%d",&i); + if(i=>64 || i>=5 && i<=18){ + printf("The discount code is 886yknuyfjmf, make sure to show it up at the cinema emtrance when asked\n"); + } + else{ + printf("You're not eligible for th discount. Make sure you've entered the right age and try again.\n"); + main(); + } + return 0; +}