Advertisement
Lukasz_Miskiewicz

Zadanie 9

Mar 24th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int potega ()
  6. {
  7. int a, b;
  8.  
  9. cout<<"wpisz podstawe: ";
  10. cin>>a;
  11. cout<<"wpisz wykladnik: ";
  12. cin>> b;
  13.  
  14. cout<< pow(a,b)<<endl;
  15.  
  16.  
  17. }
  18.  
  19. int main()
  20. {
  21. potega();
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement