79310410

Date: 2024-12-26 20:48:44
Score: 1
Natty:
Report link

You should use && instead of ||.

int main (void) {
    int test = 0;

    printf("enter number\n");
    scanf("%d", &test);

    if (test != 0 && test != 1)
    {
            printf("Not 0 nor 1\n");
    }
    else
    {
            printf("0 or 1\n");
    }

    return 0;}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Filip Wądołowski