Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // What will the answer be if x becomes 3?
- #include <iostream>
- using namespace std;
- int main()
- {
- int p,x,i;
- cin>>x;
- p=1;
- for (i=1; i<=4; i++)
- p=p*x;
- cout<<p<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement