Initial commit

This commit is contained in:
Brian Bassanetti 2023-05-30 11:50:35 +02:00 committed by GitHub
parent 82ccdcef89
commit b30d72555b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
Logic2.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
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;
}