Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ()
- {
- int a;
- int b;
- int c=1;
- cout<<"Adja meg az alapot!: ";
- cin>>a;
- cout<<"Adja meg a hatvanykitevot!: ";
- cin>>b;
- for (int i=1;i<=b;i++)
- {
- c=c*a;
- }
- cout<<c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement