#include<iostream.h>
#include<conio.h>
void check_multiple(int n1, int n2);
void main()
{
clrscr();
int int1, int2;
cout<<"Enter 1st integer: ";
cin>>int1;
cout<<"Enter 2nd Integer: ";
cin>>int2;
check_multiple(int1, int2);
getch();
}
void check_multiple(int n1, int n2)
{
if(n2 % n1 == 0)
cout<<"First integer " <<n1<<" is the multiple of second integer "<<n2;
else
cout<<"First integer "<<n1<<" is not the multiple of second integer "<<n2;
}
#include<conio.h>
void check_multiple(int n1, int n2);
void main()
{
clrscr();
int int1, int2;
cout<<"Enter 1st integer: ";
cin>>int1;
cout<<"Enter 2nd Integer: ";
cin>>int2;
check_multiple(int1, int2);
getch();
}
void check_multiple(int n1, int n2)
{
if(n2 % n1 == 0)
cout<<"First integer " <<n1<<" is the multiple of second integer "<<n2;
else
cout<<"First integer "<<n1<<" is not the multiple of second integer "<<n2;
}
0 comments:
Post a Comment