Question 20. Programme to check First number is the factor of Second number or not.

February 21, 2019
Question 20. Programme to check First number is the factor of Second number or not.
using namespace std;
int main()
{
int Num1 = 0, Num2 = 0;
cout << "Enter the first Number :";
cin >> Num1;
cout << "Enter the second Number:";
cin >> Num2;
if(Num2%Num1==0)
{
cout<< "First Number is the factor of Second Number";
}
else
{
cout <<"First Number is not the factor of Second Number";
}
return 0;}

No comments:

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();
Powered by Blogger.