-module(f). -export([m/0]). m()->case io:fread('',"~d")of{_,[X]}->io:write(f(X)),io:nl(),m();_->0end. f(0)->1;f(X)->X*f(X-1).