program to find the given number is greater and lesser
VemugantiRahul:
how many no.s you have to give as input ?
Answers
Answered by
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;
}
<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
CBSE BOARD XII,
6 months ago
Science,
6 months ago
Science,
1 year ago
Math,
1 year ago
India Languages,
1 year ago
Math,
1 year ago