int a = 10; if (a > 5) { printf(“Greatern”); }printf(“Endn”);
int day = 2;switch (day) { case 1: printf(“Sundayn”); break; case 2: printf(“Mondayn”); break; case 3: printf(“Tuesdayn”); break; default: printf(“Invalid dayn”);}
if (x > 0) if (x % 2 == 0) printf(“Evenn”); else printf(“Oddn”); else printf(“Negativen”);
if (x == 5) printf(“x is 5n”);else printf(“x is not 5n”);
int a = 3;if (a > 0){ if (a < 10) { printf(“An”); } else { printf(“Bn”); }}
int x = 4;if (x == 5) printf(“x is 5n”);else if (x == 4) printf(“x is 4n”);else printf(“x is unknownn”);
int num = 10;if (num > 10) printf(“Greater than 10n”);else if (num == 10) printf(“Equal to 10n”);else printf(“Less than 10n”);