1
0

divide.c 378 B

123456789101112
  1. /* divide.c -- divisions we have known */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. printf("integer division: 5/4 is %d \n", 5/4);
  6. printf("integer division: 6/3 is %d \n", 6/3);
  7. printf("integer division: 7/4 is %d \n", 7/4);
  8. printf("floating division: 7./4. is %1.2f \n", 7./4.);
  9. printf("mixed division: 7./4 is %1.2f \n", 7./4);
  10. return 0;
  11. }