Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- int a,n;
- while(cin>>a>>n)
- {
- if(a==0 && n==0)
- {
- break;
- }
- long long int ans= pow((double)a,n);
- printf("%d\n",ans);
- //cout<<ans<<endl;
- }
- int count=0;
- while(cin>>a>>n)
- {
- count++;
- }
- //cout<<"All Over. Exceeded "<<count<<" lines!"<<endl;
- printf("All Over. Exceeded %d lines!\n",count);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement