Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <cmath>
- using namespace std;
- int main()
- {
- int numero, expoente;
- cout << "Digite um numero\n->";
- cin >> numero;
- cout << "Digite o expoente\n->";
- cin >> expoente;
- cout << "Potencia eh: " << pow(numero,expoente) << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment