Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/integer-square-cube-quartic-quintic-c/
- 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
- A Table of Powers
- ———————
- Integer Square Cube Quartic Quintic
- ——– ——– —– ——- ——-
- 1 1 1 1 1
- 2 4 8 16 32
- 3 9 27 81 243
- Download: http://solutionzip.com/downloads/integer-square-cube-quartic-quintic-c/
Add Comment
Please, Sign In to add comment