answersLogoWhite

0

There are two simple strategies to compare two numbers, X and Y:

you can calculate X - Y.

If X - Y > 0 then X > Y,

if X - Y = 0 then X = Y and

if X - Y <0 then X < Y.

Or

you can calculate X/Y. Provided both are greater than 0,

if X/Y > 0 then X > Y

if X/Y = 1 then X = Y

if X/Y <1 then X < Y

User Avatar

Wiki User

11y ago

What else can I help you with?