Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
6
Task/Integer-comparison/Brat/integer-comparison.brat
Normal file
6
Task/Integer-comparison/Brat/integer-comparison.brat
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
first = ask("First integer: ").to_i
|
||||
second = ask("Second integer: ").to_i
|
||||
|
||||
when { first > second } { p "#{first} is greater than #{second}" }
|
||||
{ first < second } { p "#{first} is less than #{second}" }
|
||||
{ first == second } { p "#{first} is equal to #{second}" }
|
||||
Loading…
Add table
Add a link
Reference in a new issue