SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"Enter the first number ";
cin>>a;
cout<<"Enter the second number ";
cin>>b;
if(a%b==0)
cout<<a<<" is divisible by "<<b;
else
cout<<"The number is not divisible";
return 0;
}
using namespace std;
int main()
{
int a,b;
cout<<"Enter the first number ";
cin>>a;
cout<<"Enter the second number ";
cin>>b;
if(a%b==0)
cout<<a<<" is divisible by "<<b;
else
cout<<"The number is not divisible";
return 0;
}
No comments:
Post a Comment