aboutsummaryrefslogtreecommitdiff
path: root/challenge-113/abigail/awk/ch-1.awk
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-113/abigail/awk/ch-1.awk')
-rw-r--r--challenge-113/abigail/awk/ch-1.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/challenge-113/abigail/awk/ch-1.awk b/challenge-113/abigail/awk/ch-1.awk
index 4dd17cbbe5..91923aadb6 100644
--- a/challenge-113/abigail/awk/ch-1.awk
+++ b/challenge-113/abigail/awk/ch-1.awk
@@ -9,7 +9,7 @@
#
BEGIN {
- split ("0 1 2 1 0 2 6 3 8", l)
+ split ("0 1 2 1 0 2 6 3 8", tens)
}
{
@@ -20,9 +20,9 @@ BEGIN {
print 1
next
}
- for (i = 1; i <= l [D]; i ++) {
+ for (i = 1; i <= tens [D]; i ++) {
T = N - 10 * i - D
- if ((T >= 0) && (T % D == 0)) {
+ if (T >= 0 && T % D == 0) {
print 1
next
}