Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what is the output of murimuri() 1. function eukuridoR (x, y : integer) : integer; 2. begin if y=0 then eukurido := x else eukurido

what is the output of murimuri()

1. function eukuridoR (x, y : integer) : integer; 2. begin if y=0 then eukurido := x else eukurido := eukurido (y, x%y); 3. 4. 5. 6. end; 7. function eukuridoL (x, y: integer) : integer; 8. begin while x y do begin if x>y then x := x - y 9. 10. 11. 12. else 13. y :=y -x; 14. end; 15. eukuridoL := x; 16. end; 17. function murimuri () : integer; 18. var gukguk : array [1..5] of integer = (360, 1200,108,12,4,2); i, z : integer; 19. 20. 21. begin z:=gukguk [1]l; for i:=2 to 5 do begin if i mod 2 = 1 then z := eukuridoL (z, gukguk [i]) 22. 23. 24. 25. 26. else 27. := eukuridoR (z, gukguk[i]); 28. end; murimuri := z; 29. 30. end;

Step by Step Solution

3.38 Rating (164 Votes )

There are 3 Steps involved in it

Step: 1

The program fails to compile due to errors Assuming the code has some typos we can modify it as fol... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Contemporary Management

Authors: Gareth Jones, Jennifer George

5th edition

978-0077762469, 77762460, 978-0078029349, 78029341, 978-007743947

More Books

Students also viewed these Programming questions

Question

What is the output of the organization?

Answered: 1 week ago

Question

What is the output of an XSLT processor?

Answered: 1 week ago