154k views
0 votes
The >, >=, <, and <= operators also work with text, where a greater value is one that appears later in the ____.

User Kristoffer
by
8.4k points

1 Answer

0 votes

Final answer:

The greater value in text comparison is determined by its position in the alphabet.

Step-by-step explanation:

When comparing text using the operators >, >=, <, and <=, the greater value is the one that appears later in the alphabet. In other words, the letters are compared based on their position in the alphabetical order.

For example, 'banana' < 'cherry' because 'cherry' appears later in the alphabet than 'banana'.

Similarly, 'apple' <= 'apple' because both 'apple' are the same text and they are considered equal.

User TheBoss
by
7.8k points