#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
float y,a,b;
cout<<"Enter the base (a) = ";cin>>a;
cout<<"Enter the power (b) = ";cin>>b;
y=pow(a,b);
cout<<"\n"<<a<<" to the power "<<b<<" is "<<y;
getch();
return(0);
}
No comments:
Post a Comment