Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
НОД через делители чисел
{ НОД через поиск наибольшего делителя двух чисел. } var i, a, b, nod, n : integer; begin nod := 1; readln(a, b); if a > b then n := b else n := a; for i := 2 to n do if ( a mod i = 0 ) and ( b mod i = 0 ) and ( nod < i ) then nod := i; writeln ( nod ) end.
run
|
edit
|
history
|
help
0
For7
Task 3b
LewisCableCompanyPasprogramme
Enigma
f1
String compare
BubbleSor (slimst)
hi
Main-main
TID_Calculator