You are on page 1of 1

#include<iostream>

using namespace std;


int main()
{
int n1, n2;
cout << "Enter 1st integer : ";
cin >> n1;
cout << "Enter 2nd number : ";
cin >> n2;
if (n1%n2 == 0)
{
cout << "Output : " << n1 << " is a multiple of " << n2 << endl;
}
else if (n2%n1 == 0)
{
cout << "Output : " << n2 << " is a multiple of " << n1 << endl;
}
else if (n1%n2 != 0)
{
cout << "Output : NON" << endl;;
}
else if (n2%n1 != 0)
{
cout << "Output : NON" << endl;;
}
system("pause");
return 0;
}

You might also like