#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter the first integar:";
cin>>a;
cout<<"\nEnter the second integar:";
cin>>b;
if(a%b==0)
cout<<"\n"<<a<<" is a multiple of "<<b;
else
cout<<"\n"<<a<<" is not the miltiple of "<<b;
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter the first integar:";
cin>>a;
cout<<"\nEnter the second integar:";
cin>>b;
if(a%b==0)
cout<<"\n"<<a<<" is a multiple of "<<b;
else
cout<<"\n"<<a<<" is not the miltiple of "<<b;
getch();
}
No comments:
Post a Comment