Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Integer-comparison/BaCon/integer-comparison-1.bacon
Normal file
5
Task/Integer-comparison/BaCon/integer-comparison-1.bacon
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
INPUT "Enter first number " ,a
|
||||
INPUT "Enter second number " ,b
|
||||
IF a < b THEN PRINT a ," is less than ", b
|
||||
IF a = b THEN PRINT a, " is equal to ", b
|
||||
IF a > b THEN PRINT a, " is greater than ", b
|
||||
7
Task/Integer-comparison/BaCon/integer-comparison-2.bacon
Normal file
7
Task/Integer-comparison/BaCon/integer-comparison-2.bacon
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
CLS
|
||||
INPUT "a, b"; a, b 'remember to type the comma when you give the numbers
|
||||
PRINT "a is ";
|
||||
IF a < b THEN PRINT "less than ";
|
||||
IF a = b THEN PRINT "equal to ";
|
||||
IF a > b THEN PRINT "greater than ";
|
||||
PRINT "b"
|
||||
Loading…
Add table
Add a link
Reference in a new issue