⚖️Condition

Example: Using if-else

#include <stdio.h>

int main() {
    int num = 10;
    if(num > 0) {
        printf("Number is positive.\n");
    } else {
        printf("Number is not positive.\n");
    }
    return 0;
}

Last updated

Was this helpful?