Compare commits

14 Commits

Author SHA1 Message Date
7d9591708c Merge pull request 'bang' (#10) from first into master
Reviewed-on: #10
2026-02-28 14:41:38 +03:00
63865e527f bang 2026-02-28 14:40:45 +03:00
25be7d6a71 Merge pull request 'On branch kurtkobayne' (#9) from kurtkobayne into master
Reviewed-on: #9
2026-02-28 14:38:34 +03:00
1b2bb3c33e On branch kurtkobayne
Your branch is up to date with 'origin/kurtkobayne'.
 Changes to be committed:
	modified:   main.sh
2026-02-28 14:37:18 +03:00
9cce3348a0 Merge pull request 'On branch first' (#8) from first into master
Reviewed-on: #8
2026-02-27 19:05:44 +03:00
d8d1d8c2b1 Merge pull request 'On branch kurtkobayne' (#7) from kurtkobayne into master
Reviewed-on: #7
2026-02-27 19:05:24 +03:00
7b0200c541 On branch first
Your branch is up to date with 'origin/first'.
 Changes to be committed:
	new file:   script_GCD.sh
2026-02-27 19:02:36 +03:00
b917ef928f On branch kurtkobayne
Your branch is up to date with 'origin/kurtkobayne'.
 Changes to be committed:
	new file:   main.sh
2026-02-27 18:59:15 +03:00
767548ff06 Merge pull request 'kurtkobayne' (#6) from kurtkobayne into master
Reviewed-on: #6
2026-02-27 18:55:44 +03:00
838d74966d Merge branch 'master' of iux-gitea.myddns.me:24_GatijatovEI/Poetry 2026-02-27 18:53:11 +03:00
e260dd4be9 Merge pull request 'first' (#3) from first into master
Reviewed-on: #3
Reviewed-by: 24_GatijatovEI <24_GatijatovEI@iux.local>
2026-02-27 18:36:53 +03:00
946b345a58 On branch third
Your branch is up to date with 'origin/third'.

 Changes to be committed:
	new file:   main
	new file:   test.txt
2026-02-27 18:12:36 +03:00
31157971a7 letters 2026-02-27 17:58:32 +03:00
091fa03552 On branch second
Changes to be committed:
	new file:   NOD
abooooba
2026-02-27 17:48:14 +03:00
5 changed files with 51 additions and 0 deletions

13
NOD Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
a=$1
b=$2
while [ $b -ne 0 ]
do
temp=$b
b=$((a % b))
a=$temp
done
echo $a

13
main Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
echo "Введите первое число:"
read a
echo "Введите второе число:"
read b
gcd=$(./script_GCD.sh $a $b)
lcm=$(./script_LCM.sh $a $b)
echo "НОД = $gcd"
echo "НОК = $lcm"

11
main.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
echo "Введите первое число:"
read a
echo "Введите второе число:"
read b
gcd=$(./script_GCD.sh $a $b)
echo "НОД = $gcd"

13
script_GCD.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
a=$1
b=$2
while [ $b -ne 0 ]
do
temp=$b
b=$((a % b))
a=$temp
done
echo $a

1
test.txt Normal file
View File

@@ -0,0 +1 @@
hiiiii