diff --git a/if_then_else.rb b/if_then_else.rb new file mode 100644 index 0000000..4ea9e48 --- /dev/null +++ b/if_then_else.rb @@ -0,0 +1,10 @@ +#if_then_else.rb + +number = 42 + +if number % 2 == 0 + then + puts "Even" + else + puts "Odd" +end