Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzo committed Dec 19, 2023
1 parent f8a6771 commit f8aedfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion count.erl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ start(Input) ->
count(0, Target).

count(N, T) when N < T ->
count((N+1) % 2000000000, T);
count((N+1) rem 2000000000, T);
count(N, _) ->
io:fwrite("~B~n", [N]),
init:stop(0).

0 comments on commit f8aedfe

Please sign in to comment.