-module(pyramid). -export([main/1]). main([S])->N=list_to_integer(S),[io:format("~*c ",[N-abs(M),$*])||M<-lists:seq(1-N,N-1)].