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
#include <bits/stdc++.h> NEW_LINE using namespace std ; bool findGreater ( int x , int y ) { if ( x > y ) { return false ; } else { return true ; } } int main ( ) { int x = 4 ; int y = 9 ; findGreater ( x , y ) ? cout << "1 STRNEWLINE " : cout << "2 STRNEWLINE " ; return 0 ; }