Re: How to find the greatest of two numbers without using the comparison operators?
- From: SkippyPB <swiegand@xxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Aug 2007 13:17:03 -0400
On Fri, 31 Aug 2007 06:41:03 -0000, Aparajita
<aparajita.mohanty@xxxxxxxxx> wrote:
Hi,
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.
Is there any other operator in COBOL by which we can compare two
numbers.
Thanks!
Aparajita
Can't use operators? How about words? You know like:
IF A IS GREATER THAN B
Then do something.
Regards,
////
(o o)
-oOO--(_)--OOo-
"I'm not afraid of dying. I just don't want to
be there when it happens."
--Woody Allen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove nospam to email me.
Steve
.
- References:
- Prev by Date: Re: OT: Baby Update (final)
- Next by Date: Re: How to find the greatest of two numbers without using the comparison operators?
- Previous by thread: Re: How to find the greatest of two numbers without using thecomparison operators?
- Index(es):
Relevant Pages
|