Q: Write a program in which print 0 if 1 is provided as input and print 1 if 0 is provided.
Condition apply :
(i.) you can't use predefined function(like logical not).
(ii.) You can't use if-else condition.
(i.) you can't use predefined function(like logical not).
(ii.) You can't use if-else condition.
Please Do comments...
scanf("%d", & a) ;
ReplyDeleteswitch(a)
{
case(0):
printf("1");
break;
case(1):
printf("0");
break;
}