Skip to content

Instantly share code, notes, and snippets.

@alonzoibarra97
Created May 3, 2016 16:51
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/c19048797e4b8af1ad6ca5454ca7f346 to your computer and use it in GitHub Desktop.
Save alonzoibarra97/c19048797e4b8af1ad6ca5454ca7f346 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <cmath>
using namespace std;
int sppw(long double num1, long double num2){
long double producto;
producto= pow(num1,num2);
cout<< producto;
return 0;
}
int main () {
long double num11,num22, resultado;
cout<< "This programe will raise one number to another you write\n" ;
cout<<"Give me te first number"<< endl;
cin>> num11;
cout<< "Give me the second number"<< endl;
cin>>num22;
resultado= sppw(num11,num22);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment