Programming Basics – Using Operators in Pseudocodes: Part 2

Опубликовано: 31 Июль 2026
на канале: Let's Simplify Computers with MrigVats Learning
5,328
130

In a program, when manipulating and presenting data in a comprehensive format, you might need to make some comparison among available data or against some organizational standards. To make such comparison, most of the programming languages support the traditional set of relational operators. These operators are binary operators and require two operands. These operators compare data with relation to a set standard and give a value which is either true or false.

Additionally, it is not always that you compare only a single set of operands. Many a times you need to compare multiple values to arrive at a conclusion. Logical operators help you to compare more than one set of values at the same time. Similar to arithmetic and relational operators, logical operators are again binary operators and need two operands. However, in case of logical operators, both the operands should be evaluated to a Boolean value. After evaluating the operands, these operators give a Boolean value. This means that the logical operators take Boolean value as an input and give a Boolean value as an output. As a result, these operators are also known as Boolean operators.

Even though you can use an operand that evaluate to a Boolean value, you generally use an expression using relational operators as an operand for these operators.