The trouble is you think you have time. Your success depends on how you utilize your time.

C++ program to find the solution of a number of some power by taking base and exponent as input

How to solve a number have some exponent on its base by taking exponent and base as input in C++.

using namespace std;
#include <iostream>
#include <math.h>
int main()
{
cout<<"www.moznum.blogspot.com"<<endl<<endl;

float a,b;
cout<<"Enter base: ";
cin>>a;
cout<<"Enter exponent: ";
cin>>b;
cout<<a<<" power "<<b<<" = "<<pow(a,b)<<endl;
return 0;
}
You can also search this topic by :

No comments:

Post a Comment