Skip to content

Commit 5a3f881

Browse files
authored
Update example.c
Signed-off-by: Gunj Joshi <[email protected]>
1 parent 7ecc004 commit 5a3f881

File tree

1 file changed

+7
-7
lines changed
  • lib/node_modules/@stdlib/math/base/assert/is-odd/examples/c

1 file changed

+7
-7
lines changed

lib/node_modules/@stdlib/math/base/assert/is-odd/examples/c/example.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
#include <stdbool.h>
2222

2323
int main( void ) {
24-
const double x[] = { 5.0, -5.0, 3.14, -3.14, 0.0, 0.0/0.0 };
24+
const double x[] = { 5.0, -5.0, 3.14, -3.14, 0.0, 0.0/0.0 };
2525

26-
bool b;
27-
int i;
28-
for ( i = 0; i < 6; i++ ) {
29-
b = stdlib_base_is_odd( x[ i ] );
30-
printf( "Value: %lf. Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" );
31-
}
26+
bool b;
27+
int i;
28+
for ( i = 0; i < 6; i++ ) {
29+
b = stdlib_base_is_odd( x[ i ] );
30+
printf( "Value: %lf. Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" );
31+
}
3232
}

0 commit comments

Comments
 (0)