// A Naive recursive C program to find minimum of coins // to make a given change V #include #include #include // m is size of coins array (number of different coins) int minCoins(int coins[], int m, int V) { // base case if (V == 0) return 0; // Initialize result int res = INT_MAX; // Try every coin that has smaller value than V for (int i=0; i