// Demonstration of simple if statements // with simple conditions // // Written by: Angela Finlayson // Date: 14/09/2024 #include int main(void) { char c = 'g'; int x = 4; // 1 is true // 0 is false printf("%d\n", (c >= 'a') && (c <= 'm')); printf("%d\n", (x < 0) || (x > 10)); printf("%d\n", !((x < 0) || (x > 10))); return 0; }