👤

alcatuiti un program cu 4 nr intregi care afiseaza nr ma mare.

Răspuns :

#include<iostream>
using namespace std;

int main()
{
int a,b,c,d,max;
cout<<"a=";cin>>a;
cout<<"b=";cin>>b;
cout<<"c=";cin>>c;
cout<<"d=";cin>>d;
max=a;
if(b>max)max=b;
if(c>max)max=c;
if(d>max)max=d;
cout<<"numarul maxim este "<<max;
return 0;
}