A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
5
Task/Integer-comparison/AWK/integer-comparison-1.awk
Normal file
5
Task/Integer-comparison/AWK/integer-comparison-1.awk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/[0-9]* [0-9]*/{
|
||||
if ($1 == $2) print $1, "is equal to", $2
|
||||
if ($1 < $2) print $1, "is less than", $2
|
||||
if ($1 > $2) print $1, "is greater than", $2
|
||||
}
|
||||
2
Task/Integer-comparison/AWK/integer-comparison-2.awk
Normal file
2
Task/Integer-comparison/AWK/integer-comparison-2.awk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# This code contains a bug
|
||||
IF (n=3) PRINT "n is equal to 3" # The incorrectly used equals sign will set n to a value of 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue