Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # elixir solution to codeabbey challenge 4
- defmodule Fnc do
- def min_val_two(v1, v2) do
- if v1 < v2 do
- IO.puts v1
- else
- IO.puts v2
- end
- end
- end
- defmodule Main do
- def func(:eof) do
- end
- def main do
- Fnc.min_val_two(3539875, -2913804)
- Fnc.min_val_two(9970403, -1271892)
- Fnc.min_val_two(2259745, -5041103)
- Fnc.min_val_two(6135274, 6702733)
- Fnc.min_val_two(-7705887, 7333693)
- Fnc.min_val_two(9011193, -5815604)
- Fnc.min_val_two(-4443223, -3369396)
- Fnc.min_val_two(6454782, 5927252)
- Fnc.min_val_two(8752154, 8363617)
- Fnc.min_val_two(-4610650, 9748221)
- Fnc.min_val_two(6825533, -3597316)
- Fnc.min_val_two(6931901, 7542523)
- Fnc.min_val_two(-2603266, 9437222)
- Fnc.min_val_two(5903501, 9517359)
- Fnc.min_val_two(-8975159, -2311126)
- Fnc.min_val_two(8014504, 4564716)
- Fnc.min_val_two(4775069, 7984907)
- Fnc.min_val_two(-6707176, -2965185)
- Fnc.min_val_two(-7056195, 9428098)
- Fnc.min_val_two(-6262451, -4762083)
- Fnc.min_val_two(6761791, -7251257)
- Fnc.min_val_two(-577687, -7681432)
- Fnc.min_val_two(-620653, -4122904)
- Fnc.min_val_two(8245820, -1868499)
- Fnc.min_val_two(-5759287, -6364830)
- Fnc.min_val_two(-2120277, -8933753)
- Fnc.min_val_two(37854, -5188376)
- Fnc.min_val_two(8608770, 7434587)
- Fnc.min_val_two(-5751153, 4512272)
- Fnc.min_val_two(6951946, -4726312)
- end
- end
- Main.main
Add Comment
Please, Sign In to add comment