Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //extra credit
- //calculating exponents
- #include <iostream>
- #include <iomanip>
- using namespace std;
- void input (int base, int exp)
- {
- cout<<"Exponent calculator"<<endl;
- cout<<"Please enter the base : "<<endl;
- cin>>base;
- cout<<"Please enter the exponent : "<<endl;
- cin>>exp;
- }
- void output ()
- {
- cout<<base<<" raised to the "<<exp<<" power is "<<answer<<endl;
- }
- calcExp (int base, int exp)
- {
- f
- }
- int main ()
- {
- int base;
- int exp;
- int answer;
- void input (base, exp);
- void output (base, exp, answer);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement