SHARE
TWEET

jhon wick4

a guest Oct 15th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int
  4. poh (int x, int n)
  5. {
  6.   int i;            /* Variable used in loop counter */
  7.   int number = 1;
  8.  
  9.   for (i = 0; i < n; ++i)
  10.     number *= x;
  11.  
  12.   return (number);
  13. }
  14.  
  15. int
  16. main ()
  17. {
  18.  
  19.   int n = poh (2, 3);
  20.   printf ("n = %i", n);
  21.  
  22.   return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top