This commit is contained in:
nik
2025-10-01 22:52:39 +03:00
parent 52eacca48c
commit c10f32f1a5
25 changed files with 337 additions and 0 deletions

9
labs/lab2/scripts/script224.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
count=0
while IFS= read -r n; do
r=$(( n % 2 ))
[ "$r" -eq 0 ] && break
count=$(( count + 1 ))
done
echo "$count"