#include <stdio.h> int main() { int age = 20; int hasTicket = 1; if (age >= 18) { if (hasTicket) { printf("You may enter the show.\n"); } else { printf("You need a ticket.\n"); } } return 0; }
Click Run to execute this code.