![nik2lit](/avatars/5803.jpg)
nik2lit
24.07.2021 •
Social Studies
Nhà quản trị học là gì
Solved
Show answers
More tips
- L Leisure and Entertainment Unlocking the Secrets of Winning the Lottery...
- S Style and Beauty Ultimate Guide on How to Care for Suede Shoes...
- S Sport Running: How to Do It Right?...
- F Food and Cooking How to Cook Spaghetti Right – Secrets and Tips...
- P Philosophy Personal attitude towards Confession: how to prepare and undergo the procedure correctly?...
- H Health and Medicine Flu: How to Recognize It by the First Symptoms?...
- F Food and Cooking How to Sober Up Quickly? Important Facts and Tips...
- H Health and Medicine How to Properly Take a Blood Sugar Test?...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
Answers on questions: Social Studies
- S Social Studies How did liberalism influence the American and French Revolution?...
- S Social Studies Identify whether each leader was on the side of the North or the South....
- S Social Studies What Is The Capital of Arkansas? plz tell me...
- S Social Studies In 2015 civil rights were extended through President Obama s executive orders and the Department of Justice decisions to which underrepresented group?...
- S Social Studies While assessing the pupils of a client, a healthcare professional notices pupillary dilatation. Which drug intake might have resulted in this condition?...
- S Social Studies In a DFD, the Gane and Sarson symbol for a process is a . Group of answer choices flat rectangle that is open on the right side and closed on the left side line with a...
- S Social Studies Imagine a study in which the researcher put some people in a happy mood and others in a depressed mood to observe the effects of mood on memory. Describe two pieces of...
- S Social Studies In a process called , companies are eliminating many traditional intermediaries because they find that they don’t add enough value to the distribution channel....
- S Social Studies A 30-year-old stay-at-home son tells his parent he is looking for work but cannot find a job. When the parent finds the son a job, he refuses to take it. The 30-year-old...
- S Social Studies Reyna and her husband are starting a family and decide to move closer to either her or his own family. Reyna’s family lives on the West Coast, but her husband’s family...
Ответ:
gcd(X, Y, Z):- X = Y -> (Z=X->write('TRUE');write(FALSE'))
gcd(X, Y,Z):- X < Y ->(Y1 is Y -X, gcd(X, Y1, Z))
gcd(X, Y, Z):- X > Y-> gcd(Y, X, Z)
Explanation:
The Prolog function gcd() accepts three arguments, calculates the value of the highest common divisor of X and Y arguments and compares the result with the Z variable. If the result is equal to Z, then a true is returned else a false is returned.