Home > Back-end >  The problem of the c language opens at detail question, please have a look
The problem of the c language opens at detail question, please have a look

Time:10-09

Can you
If
The else
To form an independent judgment statement
And then four
If
The else
Form four independent judgment statement
If you can also need? Thanks!
# include & lt; stdio.h>
Int main ()
{
int a;
Scanf_s (" % d ", & amp; a);
If (a/2==0 & amp; & A==6 | | a==8 | | a==10 | | a==12)
{
Printf (" % d ", 1);
}
The else
{
Printf (" % d ", 0);
}
If (a/2==0)
{
Printf (" % d ", 1);
}
The else
{
Printf (" % d ", 0);
}

If (a/2==0 | | a==6 | | a==8 | | a==10 | | a==12)
{
Printf (" % d ", 1);
}
The else
{
Printf (" % d ", 0);
}
If (a/2!=0)
{
Printf (" % d ", 1);
}
The else
{
Printf (" % d ", 0);
}
return 0;
}
  • Related