Guest User

Untitled

a guest
Jul 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. int myPowFunction(number_1, number_2)
  2. {
  3. int result = 1;
  4. for( int i=1; i <= number_2; i++ )
  5. {
  6. result *= number_1;
  7. }
  8. return result;
  9. }
  10.  
  11. cout << myPowFunction( 5, 8 );
Add Comment
Please, Sign In to add comment