Find maximum among x ^ ( y ^ 2 ) or y ^ ( x ^ 2 ) where x and y are given | C # program to find the greater value ; Function to find maximum ; Case 1 ; Case 2 ; Driver Code
using System ; class GFG { static bool findGreater ( int x , int y ) { if ( x > y ) { return false ; } else { return true ; } } public static void Main ( ) { int x = 4 ; int y = 9 ; if ( findGreater ( x , y ) ) Console . WriteLine ( "1" ) ; else Console . WriteLine ( "2" ) ; } }