> defmodule GuessingGame do
> def hello do
> IO.puts("Welcome to the number guessing game!!!")
> IO.puts("--------------------------------------")
> user_input = IO.gets ("What is your guess? ")
> num = String.to_integer(user_input)
> IO.puts("--------------------------------------")
> random_num = Enum.random([1, 2, 3, 4, 5])
> IO.puts("The random number was #{random_num} ")
> cond do
> random_num === num ->
> "Correct Guess"
> random_num != num ->
> "Incorrect Guess"
> end
> end
> end
I am new to this. Not working yet. Am I close?


















