#include<iostream.h>
#include<conio.h>
#include<process.h>
class kaj
{
private:
int a,b;
float c;
public:
void f(int,int);
void f(float,int);
} ;
void kaj::f(int c,int b=0)
{
int flag=0;
if(b!=0)
{
if(c%b==0)
cout<<"a is div by b";
else
cout<<"a is not divisble by b";
}
else
{
for(int i=c-1;i>=2;i--)
{
if(c%i==0)
{
cout<<"\nIt is not Prime No.";
flag=1;
break;
}
}
if(flag==0)
cout<<"\nIt is Prime no.";
}
}
void main()
{
clrscr();
int a,b,n;
kaj t;
cout<<"\nEnter 2 nos.";
cin>>a>>b;
while(1)
{
cout<<"\n1.for passing 2 arguements";
cout<<"\n2.for passing 1 arguement";
cout<<"\n3.for exit";
cout<<"\nEnetr ur choice";cin>>n;
switch(n)
{
case 1:
t.f(a,b);
break;
case 2:
t.f(a);
break;
case 3:
exit(0);
deafault:
cout<<"Wrong Choice";
}
}
}