Solutions Exercise C (g)
Duration: 6:20 Min | Sep 03, 2023
Let us C Solutions of Chapter 9 Pointers of Exercise C (g): Write a C function to compute the greatest common divisor given by Euclid’s algorithm, exemplified for J=1980, K=1617 as follows:
1980/1617=1 1980-1*1617=363
1617/363=4 1617-4*363=165
363/165=2 363-2*165=33
5/33=5 165-5*33=0