/* BC program john is a coded version of a recent algorithm of John Campbell. It is meant to be run with the BC program gcd which contains the functions gcd(a,b) and lcma(a[],n). johna(a[],n) takes an array of positive integers aa[0],...,aa[n-1] and replaces them by an array of positive integers a[0],...,a[n-1], where (i) a[i] divides aa[i] for 0<=i1){ john1 = john1*h john2 = john2/h h = gcd(john1,john2) } } return(lcm) } define johna(aa[],n){ auto i,j,a[],t,temp for(i=0;i