find the largest of three no. with out using the comparison operator
if(a/b == 0) then a is smaller than b or b is greater than a
else if(b/a == 0) then b is smaller than a or a is greater than b
eg 7/34 =0 so 34 is greater than 7
if(a/b == 0) then a is smaller than b or b is greater than a
else if(b/a == 0) then b is smaller than a or a is greater than b
eg 7/34 =0 so 34 is greater than 7
No comments:
Post a Comment