Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Program-termination/Ruby/program-termination-1.rb
Normal file
8
Task/Program-termination/Ruby/program-termination-1.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
if problem
|
||||
exit(1)
|
||||
end
|
||||
|
||||
# or
|
||||
if problem
|
||||
abort # equivalent to exit(1)
|
||||
end
|
||||
3
Task/Program-termination/Ruby/program-termination-2.rb
Normal file
3
Task/Program-termination/Ruby/program-termination-2.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if problem
|
||||
exit! # default value 1
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue