Question: TASK 4 (total 20 marks): Write a C++ program to declare local variables of a=5 and b=10 as an integer data type. Perform logical operations
TASK 4 (total 20 marks): Write a C++ program to declare local variables of a=5 and b=10 as an integer data type. Perform logical operations for each AND, OR, and NOT cases. For each of this case, demonstrate one output of true (one or non-zero) and one output of false (zero). Show your program and the output screen. Answer (show your program and the output)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
