Q3. Write the name & use of following symbols.
1.
Answers
Answered by
2
Explanation:
The name is Relational operator
Use is These operators compare
Answered by
1
Answer:
- Relational Operator
Uses:-
- Used to compare two values or variable
- Returns true when both the values are different
Sample Example:-
CLS
PRINT "ENTER TWO NUMBERS"
INPUT A
INPUT B
IF A<>B THEN
PRINT "BOTH NUMBERS ARE DIFFERENT"
ELSE
PRINT "BOTH NUMBERS ARE SAME"
ENDIF
END
- As we can see in if condition A<>B is comparing value of variable A with value of variable B
- If they are different, returns true and executes the if statement otherwise executes the else statement.
Similar questions
Math,
1 month ago
English,
1 month ago
Social Sciences,
1 month ago
Math,
2 months ago
Science,
2 months ago
English,
10 months ago
India Languages,
10 months ago
English,
10 months ago