Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- // Karol Woźniak 18.03.2020r / poprawka 23.03.2020r
- using namespace std;
- int liczba1,liczba2;
- int POTEGA(int a,int b)
- {
- return a=pow(a,b);
- }
- int main()
- {
- cout << "Podaj liczbe, ktora chcesz podniesc do potegi: ";
- cin >> liczba1;
- cout << "Do jakiej potegi chcesz podniesc liczbe " << liczba1 << "?: ";
- cin >> liczba2;
- cout << "Liczba " << liczba1 << " Podniesiona do potegi " << liczba2 << " wynosi: " << POTEGA(liczba1, liczba2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement