Homework 7 Problem 1
You cannot submit for this problem because the homework's deadline is due.
Note
- Name your file as myPow.cpp and myPow.h (put the definition your function in myPow.h and implementation in myPow.cpp). Also, include a main function called ex1.cpp to read the input and output. Sample input and output are shown on the pdf.
- You can define any helper function.
- You cannot use other library that can be used to calculate the power of a number.
- Set the output to five decimal space.
- For the input on JOJ, they're not seperated by a comma. e.g.,
2 4
instead of2, 4