From b30d72555b6d7035602cb4eff4cd9710564288e3 Mon Sep 17 00:00:00 2001 From: Brian Bassanetti <89162244+BrainTheBest5@users.noreply.github.com> Date: Tue, 30 May 2023 11:50:35 +0200 Subject: [PATCH] Initial commit --- Logic2.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Logic2.c 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; +}