**
-module(shubham).
-export([call/0, hi/0, guy/0]).
call() -> hi().
hi() -> guy();
hi() -> io: fwrite("This is hi \n").
guy() -> io:fwrite("This is A guy\n").**
它应该打印“This is a guy”然后“This is hi”但只打印guy()
答案 0 :(得分:1)
您应该在第四行后使用,
而不是;
,并删除hi() ->
,如下所示:
-module(shubham).
-export([call/0, hi/0, guy/0]).
call() -> hi().
hi() -> guy(),
io:fwrite("This is hi \n").
guy() -> io:fwrite("This is A guy\n").