0
Write a program which will raise any number x to a positive power n. Obtain values of x and n from the users.
3 Respuestas
+ 1
Where is the fun if you can use pow?
0
#include<iostream>
#include<cmath>
using namespace STD;
main()
{
float x,y,result;
cout<<"ENTER BASE AND POWER\n ";
cin>>x>>n;
result=pow(x,n);
cout<<result;
}