Computer Science, asked by rawatharshbhupi, 2 months ago

Q3. Write the name & use of following symbols.
1.
 <  >

Answers

Answered by antara03dhn
2

Explanation:

The name is Relational operator

Use is These operators compare

Answered by BrainlyProgrammer
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