C Program : Logical OR (||) Operator

 #include <stdio.h>

int main() { int x = 5, y = 10; if (x > 0 || y > 0) { printf("At least one of the conditions is true.\n"); } else { printf("Both conditions are false.\n"); } int a = 0, b = -15; if (a > 0 || b > 0) { printf("At least one of the conditions is true.\n"); } else { printf("Both conditions are false.\n"); } return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management