akosiraff

Download: Integer Square Cube Quartic Quintic C

Jan 30th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/integer-square-cube-quartic-quintic-c/
  3. Write a function square () that takes an integer and return its square, and a function cube() that takes an integer and return its cube. Use square () and cube () functions to write the functions quartic() and quintic(), which return the fourth and fifth powers of an integer, respectively. Use your functions to write a program that prints a table of powers of integers from 1 to 25. The output of your program should look like this
  4. A Table of Powers
  5. ———————
  6. Integer Square Cube Quartic Quintic
  7. ——– ——– —– ——- ——-
  8. 1 1 1 1 1
  9. 2 4 8 16 32
  10. 3 9 27 81 243
  11.  
  12. Download: http://solutionzip.com/downloads/integer-square-cube-quartic-quintic-c/
Add Comment
Please, Sign In to add comment