Question: Using this prewritten program below, I have to make both an iterative and recursive function: #include #include #include /* function prototypes */ int iterGCD(int x,

Using this prewritten program below, I have to make both an iterative and recursive function: #include
/* function prototypes */ int iterGCD(int x, int y); int recGCD(int x, int y);
int main(int argc, char *argv[]) { int num_vals = 6; int x_vals[] = {3, 9, 12, 36, 1, 105}; int y_vals[] = {3, 21, 18, 27, 12, 91}; int i = 0; printf("Assignment 2 Problem 2 by int iterGCD(int x, int y) { return -1; } int recGCD(int x, int y) { return -1; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
