#include using namepsace std; int main() { cout <<"Enter value of n:"<> n; int a[n]; int i,j,gcd; for(i=0;i> a[i]; j=1; gcd=a[0]; while(j