I m writing a program.. I m nt getting this point
"For this you have to write a function gcdMulti(int[]) that would take the integer array as argument, the array size and print the GCD of the consecutive elements."
I know functions.. I know how to send any integer in a function but nt getting hw to send an integer dynamic array in a function
will it like
Basically the question is this
I will be grateful if any one can help me plz....#1: Write a program that calculates the gcd’s (greatest common divisors) of each of
the two consecutive elements of an array of size n and prints them as shown in the example
below. For this you have to write a function gcdMulti(int[]) that would take the integer array as
argument, the array size and print the GCD of the consecutive elements. Furthermore,
gcdMulti() must call gcd() which returns the GCD of two integers. Identify the complete
signatures of each of these functions and implement them.