LOGICAL OPERATORS
LOGICAL OPERATORS
OUTPUT
#include <stdio.h>
int main()
{
int a, b;
a = 20;
b = 0;
//&& - AND
//|| - OR
printf("a&&b = %d\n", a && b);
printf("a||b = %d\n", a || b);
return 0;
}
INPUT
a&&b = 0
a||b = 1
Comments
Post a Comment