Write a C program to compute the greates common division of two positive integers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a C program to compute the greates common division of two positive integers

6th Dec 2018, 3:08 PM
Abdulsalam Ayomide
5 Answers
+ 3
Example Take 36 and 24 36 > 24 then (36-24 , 24) => (12,24) 12 < 24 then (12,24-12) => (12,12) 12==12 then Answer is 12
6th Dec 2018, 5:34 PM
Rstar
Rstar - avatar
+ 2
Abdulsalam Ayomide Is good to know that: - Assignements for comunity, cannot be posted in Q/A section but only using relative in-app menu - and here is NOT good seen (and is reportable also) who post own homeworks for easy solution. In this case you have to post always your attempt I dont know why you posted this question, but ita good that you kbow this because you ate a new user Anyway, can you post your attempt so we can better help you?
6th Dec 2018, 3:35 PM
KrOW
KrOW - avatar
+ 2
Abdulsalam Ayomide Please like said previously, you have to post your attempt... Here we dont make other homeworks
6th Dec 2018, 7:58 PM
KrOW
KrOW - avatar
+ 1
you can apply euclids algorithm.
6th Dec 2018, 3:13 PM
Bebida Roja
Bebida Roja - avatar
+ 1
write out in c program pls
6th Dec 2018, 5:35 PM
Abdulsalam Ayomide