Compare commits
2 Commits
feature/ta
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7429fb1489 | |||
|
|
2642a5c14f |
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
n=2
|
|
||||||
NOD=1
|
|
||||||
|
|
||||||
if [ $a -lt $b ]; then
|
|
||||||
min=$a
|
|
||||||
else
|
|
||||||
min=$b
|
|
||||||
fi
|
|
||||||
|
|
||||||
while [ $n -le $min ]; do
|
|
||||||
if [ $((a % n)) -eq 0 ] && [ $((b % n)) -eq 0 ]; then
|
|
||||||
NOD=$n
|
|
||||||
fi
|
|
||||||
n=$((n + 1))
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user