Question: i need c++ program, question 1) write a function that prints the base 10 digits of n vertically to cout. for example: printVertically(2358) would print
i need c++ program, question 1) write a function that prints the base 10 digits of n vertically to cout. for example: printVertically(2358) would print 2 3 5 8 vertically (also you can't use loops/vectors/arrays) 2) write a recursive function to compute a^b (a to the power b) for binary search. please specify your answers with number 1 & 2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
