```
#include<iostream.h>
#include<stdlib.h>
#include<conio.c>
int Add();
int Mod();
int Mul();
int Ftrl();
int Pow();
main()
{
char p;
cout<<"\tmenu\n";
cout<<"\t addition : A \n";
cout<<"\t mod : O\n";
cout<<"\t multiplication : M \n";
cout<<"\t factorial : F \n";
cout<<"\t power : p \n";
cout<<"\t Plz enter option \n";
cin>>p;
switch (p)
{
case 'A':
case 'a':
cout<<"the result is:\t"<<Add();
case 'O':
case 'o':
cout<<"the result is:\t"<<Mod();
case 'F':
case 'f':
cout<<"the result is:\t"<<Ftrl();
case 'M':
case 'm':
cout<<"the result is:\t"<<Mul();
case 'P':
case 'p':
cout<<"the result is:\t"<<Pow();
case 'Q':
case 'q':
cout<<"khudahafiz";
}
system("pause");
}
int Add()
{ int r,a,b;
cout<<"nter 1st no\t";
cin>>a;
cout<<"nter 2nd no\t";
cin>>b;
r=a+b;
return r;
}
int Mul()
{ int r,a,b;
cout<<"nter 1st no\t";
cin>>a;
cout<<"nter 2nd no\t";
cin>>b;
r=a*b;
return r;
}
int Ftrl()
{ int a,b,k; long c=1;
cout<<"nter 1st no\t";
cin>>a;
for( b=a;b>0;b--)
{
c=c*b;
}
cout<<"result of 1stno :\t"<<c;
int z,d; long e=1;
cout<<"nter 2nd no o\t";
cin>>d;
for( z=d;z>0;z--)
{
e=e*z;
}
cout<<"\nresult of 2nd no:\t"<<e;
k=e+c;
return k;
}
int Mod()
{ int r,a,b;
cout<<"nter 1st no\t";
cin>>a;
cout<<"nter 2nd no\t";
cin>>b;
r%=a/b ;
return r;
}
int Pow()
{ int i,a,b;
cout<<"nter 1st no\t";
cin>>a;
cout<<"nter 2nd no\t:";
cin>>b;
i=a^b;
return i;
}
```