Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. // What will the answer be if x becomes 3?
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. int p,x,i;
  7. cin>>x;
  8. p=1;
  9. for (i=1; i<=4; i++)
  10. p=p*x;
  11. cout<<p<<endl;
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement