Re: How to find the greatest of two numbers without using the comparison operators?



On Fri, 31 Aug 2007 06:41:03 -0000, Aparajita
<aparajita.mohanty@xxxxxxxxx> wrote:

I want to find the greatest of two given numbers say 'A' and 'B.
The condition is that I should use the IF clause but not comparison
operators like '<', '>','=' etc.

Why? If it is because you don't like the symbols, use the words.

Is there any other operator in COBOL by which we can compare two
numbers.

There are ways to solve your problem in CoBOL. I don't know what
kind of operator you want for this excluding the operators designed
for it.
.