#include <iostream.h>
#include <conio.h>
#include<process.h>void main()
{
int n, m;
cout<< "\n Enter the value of n :";
cin >> n;
cout<< "\n Enter the value of m :";
cin >> m;
if(m>n)
{cout<< "\n The number " << n << " is not divisible by " << m;
getch();
exit(1);
}
for( int i = n ; i > = m ; i-- )
{
if(i % m == 0)
{
cout << "\n " << i << " is divisible by " << m;
if(i%2 == 0)
cout<< "\n The number " << i << "Even";
else
cout<< "\n The number " << i << "Odd";
}
}
getch();
}
your blog are good
ReplyDelete