Write a program to find the largest among 2 numbers
Answers
Answered by
2
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a>b) cout << "A is greater : "<<a<<endl;
else if(b>a) cout << " B is greater : "<<b<<endl;
return 0;
}
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a>b) cout << "A is greater : "<<a<<endl;
else if(b>a) cout << " B is greater : "<<b<<endl;
return 0;
}
Answered by
1
This is the answer .....hope it helps
Attachments:
Similar questions
Computer Science,
7 months ago
English,
7 months ago
English,
7 months ago
Math,
1 year ago
Physics,
1 year ago