Only 2 variable.How?
I have learned about iostream, math.h and algorithm but more wouldn’t hurt.
I tried:
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a;
int b;
cin>>a;
cin>>b;
int a=max(a,b);
cin>>b;
int a=max(a,b);
cin>>b;
int a=max(a,b);
return 0;
}
It doesn’t work
New contributor
Trường Minh Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.