#include<iostream>
using namespace std;
class a
{
public:
inline int greater(int x,int y);
inline int subtract(int x,int y)
{
return x-y;
}
void display(int x)
{
cout<<"result :"<<x<<endl;
}
};
inline int a::greater(int x,int y)
{
return (x>y?1:0);
}
int main()
{
a ob;
cout<<"enter two no:";
int x,y;
cin>>x>>y;
int big_no=ob.greater(x,y);
if(big_no)
{
int result=ob.subtract(5,4);
ob.display(result);
}
else
cout<<"the result is negative"<<endl;
return 0;
}
using namespace std;
class a
{
public:
inline int greater(int x,int y);
inline int subtract(int x,int y)
{
return x-y;
}
void display(int x)
{
cout<<"result :"<<x<<endl;
}
};
inline int a::greater(int x,int y)
{
return (x>y?1:0);
}
int main()
{
a ob;
cout<<"enter two no:";
int x,y;
cin>>x>>y;
int big_no=ob.greater(x,y);
if(big_no)
{
int result=ob.subtract(5,4);
ob.display(result);
}
else
cout<<"the result is negative"<<endl;
return 0;
}