Home /
Expert Answers /
Computer Science /
please-explain-in-c-write-a-recursive-function-called-printnumpattern-to-output-the-following-nu-pa631
(Solved): please explain in c++
Write a recursive function called PrintNumPattern( to output the following nu ...
please explain in c++
Write a recursive function called PrintNumPattern( to output the following number pattern. Given a positive integer as input (Ex: 12), subtract another positive integer (Ex: 3) continually until a negative value is reached, and then continually add the second integer until the first integer is again reached. For this lab, do not end output with a newline. Ex. If the input is: 12 3 the output is: 129630−3036912451754.3251632.q×3zqy7 \begin{tabular}{l|l} LAB & 15.10.1: LAB: Number pattern \\ ACTIVITY & 15. \end{tabular} 0/10 main.cpp Load default template... \#include using namespace std; / TODO: Write recursive PrintNumPattern() function int main(){ int num1; int num2; cin >> num1; cin >> num 2 ; PrintNumPattern(num1, num2); return θ; (3)