IlanZiin

script 03 cpp

Jan 26th, 2018
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int numero, expoente;
  10.     cout << "Digite um numero\n->";
  11.     cin >> numero;
  12.     cout << "Digite o expoente\n->";
  13.     cin >> expoente;
  14.     cout << "Potencia eh: " << pow(numero,expoente) << endl;
  15.     system("pause");
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment