Skip to content

Instantly share code, notes, and snippets.

@alonzoibarra97
Created February 16, 2016 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alonzoibarra97/fd986b67ecc41877c771 to your computer and use it in GitHub Desktop.
Save alonzoibarra97/fd986b67ecc41877c771 to your computer and use it in GitHub Desktop.
Quiz2.1.cpp
#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