GNU/Linux • xterm • bash 0 views

“Write es_par(N) using guards (when N rem 2 =:= 0) and evaluate es_par(38).” Exercise 9 of 10 from the Erlang programming practice. This exercise was performed on an Ubuntu EC2 instance in AWS Academy, using the Erlang interactive shell (erl). It demonstrates the use of guards to determine whether a number is even. The function is tested with the value 38, returning true.