Răspuns :
Răspuns:
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
if(a-b<0) {
cout << "Numarul mic: " << a << endl;
cout << "Numarul mare: " << b;
}
else
if(a-b>0){
cout << "Numarul mic: " << b << endl;
cout << "Numarul mare: " << a;
}
else cout << "Numerele sunt egale";
}
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a, b;
cout << "Introduceti numerele : ";
cin >> a >> b;
cout << "\nCel mai mic este " << min(a, b);
cout << "\nCel mai mare este " << max(a, b);
}