#include <stdio.h>
int
main (void)
{
int a, b, c, d;
a = 10 % 3;
b = -10 % 3;
c = 10 % -3;
d = -10 % -3;
printf ("10 %% 3 is %d\n", a);
printf ("-10 %% 3 is %d\n", b);
printf ("10 %% -3 is %d\n", c);
printf ("-10 %% -3 is %d\n", d);
return (0);
}
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.