the three logical operator are :-
logical AND(&&)
logical OR(||)
logical NOT(!)
#include <stdio.h>
int main()
{
int i=1, j=1;
while (i <= 4 || j <= 3) //here we use the logical OR operator which check condition
{
printf("%d %d\n",i, j);
i++;
j++;
}
return 0;
}
Output:
1 1
2 2
3 3
4 4