Created
February 16, 2016 17:12
-
-
Save alonzoibarra97/fd986b67ecc41877c771 to your computer and use it in GitHub Desktop.
Quiz2.1.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <cstdlib> | |
int superpower (int a, int b) | |
{ | |
int exp; | |
exp = pow(a,b); | |
return exp; | |
} | |
int main() { | |
using namespace std; | |
int exp, a, b; | |
cout << "Give me a number so i can raise up to another\n"; | |
cin >> a; | |
cout << "give me the second number\n"; | |
cin >> b ; | |
exp= superpower(a,b); | |
cout << exp; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment