|
#include<iostream.h>
#include<math.h>
#include<conio.h>
float f (float a, int b)
{
return pow(a,b);
}
main()
{
float x=0; int potega=0;
cout <<"Podaj liczbe: ";cin>>x;
cout <<"\nPotega: ";cin>>potega;
cout <<"\n"<<x<<" ^ "<<potega<<" = "<<f(x,potega)<<"\n";
getch();
}
__________________
"Always be nice to people on your way up. Because you will meet the same people on the way down." - Wilson Mizner
|