We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 983919b commit 78d1b43Copy full SHA for 78d1b43
0x02-functions_nested_loops/7-print_last_digit.c
@@ -10,6 +10,7 @@
10
int print_last_digit(int n)
11
{
12
int r = n % 10;
13
+
14
if (r < 0)
15
16
r *= -1;
0 commit comments