Răspuns :
#include <iostream>
using namespace std;
int main()
{
float a,b,max; //declaram a ,b si max reale
cin >> a; //citim numarul a
cin >> b; //citim numarul b
if(a>b)
max=a;
else
max=b;
cout << max; //scriem max
return 0;
}
Salut!
#include<iostream>
using namespace std;
int main()
{
int a,b,max;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
if (a<b)
cout<<"max="<<b;
else
cout<<"max="<<a;
return 0;
}
Succes!