The greatest common divisor (GCD) of two integers is the largest integer that evenly divides each of the two numbers. Write a function gcd that returns the greatest common divisor of two integers. Incorporate the function into a script that reads two values from the user. Display the result of the function in the browser’s status bar.

What will be an ideal response?

```

1

2

3

4

5

6

7 Solution: 16.24

8

9

26

27

28

29

30

31

```





Computer Science & Information Technology

You might also like to view...

Apart from object behaviors, a characteristic feature that objects share with variables is they always have a unique identity.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

____________________ is an easy-to-use, flexible, and low-cost digital interface that is capable of supporting transfer speeds of up to 3.2 Gbps.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology