Răspuns :
Răspuns:
#include <iostream>
using namespace std;
int main()
{
int a,b,u;
cin>>a>>b;
u=b%10;
if(a%u==0)
cout<<"DA";
else cout<<"Nu";
return 0;
}
Explicație:
#include <iostream>
using namespace std;
int main()
{
unsigned a,b;
cin >> a >> b;
if(a%(b%10)==0)
cout << "DA";
else
cout << "NU";
return 0;
}