Yay it works!

This is all of my code if you care.

Code:

#include <iostream>
int multiply(int x,int y)
{
return x*y;
}
int powers(int x, unsigned y)
{
if(y==0)
return 1;
else
return(x*powers(x, y-1));
}
int divide(int x, int y)
{
return x/y;
}
int add(int x, int y)
{
return x+y;
}
int subtract(int x, int y)
{
return x-y;
}
using namespace std;
int main()
{
char op='c';
int x,y;
while (op!='e')
{
cout<<"What operation would you like to perform add(+), subtract(-),divide(/),multiply(*), Powers(^) (e)exit?";
cin>> op;
switch(op)
{
case '^':
cout<<"Enter the the base then power"<<endl;
cin>>x;
cin>>y;
cout<<powers(x,y)<<endl;
break;
case '+':
cout<<"Enter the numbers you would like to add."<<endl;
cin>>x;
cin>>y;
cout<<x<<"+"<<y<<"="<<add(x,y)<<endl;
break;
case'-':
cout<<"Enter the numbers you would like to subtract."<<endl;
cin>>x;
cin>>y;
cout<<x<<"-"<<y<<"="<<subtract(x,y)<<endl;
break;
case'/':
cout<<"Enter the numbers you would like to divide."<<endl;
cin>>x;
cin>>y;
cout<<x<<"/"<<y<<divide(x,y)<<endl;
break;
case'*':
cout<<"Enter the numbers you would like to multiply."<<endl;
cin>>x;
cin>>y;
cout<<x<<"*"<<y<<multiply(x,y)<<endl;
break;
case'e':
return 0;
default:
cout<<"sorry, try again."<<endl;
}
}
return 0;
}

Thanks for the help.