Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6532ec6

Browse files
committedMar 17, 2020
Add printf Error on div and mod functions
1 parent db7d926 commit 6532ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎0x0F-function_pointers/3-op_functions.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int op_div(int a, int b)
4545
{
4646
if (b == 0)
4747
{
48-
printf("Error");
48+
printf("Error\n");
4949
exit(100);
5050
}
5151

@@ -62,8 +62,8 @@ int op_mod(int a, int b)
6262
{
6363
if (b == 0)
6464
{
65+
printf("Error\n");
6566
exit(100);
66-
printf("Error");
6767
}
6868
return (a % b);
6969
}

0 commit comments

Comments
 (0)