Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Krasimir committed Nov 25, 2024
1 parent 29b205c commit 72e2aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int is_positive_integer(const char *str) {

int main(int argc, char *argv[]) {
if (argc != 3) {
printf("Incorrect usage. You provided %d arguments. The correct number of arguments is 2\n", argc - 1);
printf("Incorrect usage. You provided %d argument%s. The correct number of arguments is 2\n", argc - 1, (argc - 1 == 1) ? "" : "s");
return 1;
}

Expand Down

0 comments on commit 72e2aa7

Please sign in to comment.