Demo entry 6642260

example

   

Submitted by anonymous on Sep 22, 2017 at 17:06
Language: Erlang. Code size: 176 Bytes.

greet(Name, male) ->
  io:format("Hello, Mr. ~s!", [Name]);
greet(Name, female) ->
  io:format("Hello, Mrs. ~s!", [Name]);
greet(Name, _) ->
  io:format("Hello, ~s!", [Name]).

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).