C # program to print greater of x ^ y and y ^ x
using System ; class GFG { static void printGreater ( int x , int y ) { double X = y * Math . Log ( x ) ; double Y = x * Math . Log ( y ) ; if ( Math . Abs ( X - Y ) < 1e-9 ) { Console . WriteLine ( " Equal " ) ; } else if ( X > Y ) { Console . WriteLine ( x + " ^ " + y ) ; } else { Console . WriteLine ( y + " ^ " + x ) ; } }