Răspuns:
#include <iostream>
using namespace std;
int main()
{
int a,b,c,d,i,j,X=0;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
cout<<"d=";
cin>>d;
for(i=a;i<=b;i++)
for(j=c;j<=d;j++)
if(i==j)
X=1;
if(X==0)
cout<<"NU";
else cout<<"DA";
return 0;
}
Explicație:
Multumesc+5*+cel mai inteligent raspuns?