Question: How would you explain the thought process of this code. It's to determine the greatest common divisitor of two numbers. M= int(input(Det frsta talet r:))

 How would you explain the thought process of this code. It's

How would you explain the thought process of this code. It's to determine the greatest common divisitor of two numbers.

M= int(input("Det frsta talet r:")) N=int( input("Det andra talet r: ")) R=M%N while R : M=NN=RR=M%Nprint(SGD:,N) input("Press enter to exit")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!