Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
pdp31-final
Сумма пар чисел кратных и некратных 11
solar_system_5
Perimetro y Area (con validaciones)
programme 2
practica 3 ejercicio B1
String compare
practica 6 ejercicio 1
nomer1
sum_example1
Please log in to post a comment.