/*---------------------------------------------------------- Elizabeth Sklar MC140.0X 29 September 2000 This program demonstrates use of the C math operators for division and modulus. ----------------------------------------------------------*/ #include /*--------------------------------------------------------*/ /* main program */ /* */ /*--------------------------------------------------------*/ void main() { int i1, i2, i3, i4; i1 = 17; i2 = 5; i3 = i1 / i2; i4 = i1 % i2; printf( "%d / %d = %d with a remainder of %d\n", i1,i2,i3,i4 ); } /* end of main() */