Computer Science, asked by megana58, 1 year ago

program to find the given number is greater and lesser


VemugantiRahul: how many no.s you have to give as input ?
VemugantiRahul: if it is two, do we have to compare both and say the result ?
VemugantiRahul: or is there a no. and a comparing quantity (which is also input from user )
VemugantiRahul: please recheck question you typed in the question
VemugantiRahul: i wil definitely answer when u say

Answers

Answered by Anonymous
1
In C++
<include> iostream
using namespace std;
int main (){
int a, b;
cout<<"\n Enter any two no. :";
cin>>a, b;
a>b?cout<<a<<"is greater than"<<b:cout<<b<<" is greater than<<a;
return 0;
}

Similar questions