logical Operators
Submissions: 4466   Accuracy:

66.81%

  Difficulty: Basic   Marks: 1
Associated Course(s):   Fork CPP   Placement 100

Logical operators are used when we want to check the truth value of certain statements. Logical operators help us in checking multiple statements together for their truthness.

Here we will learn logical operators like AND(&&), OR(||), NOT(!). These operators produce either a true or a false as an output.

Input Format:
First line of input conatins number of testcases T. For each testcase, there will be one line of input containing a and b separated by a space.

Output Format:
For each testcase, print the required output.

Your Task:
Your task is to complete the provided function.

Constraints:
1 <= T <= 10
1 <= a, b,<= 100

Input:
1
6 7

Output:
1 1 0

Video:

** For More Input/Output Examples Use 'Expected Output' option **

Author: Soul_xhacker


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.