random.c 489 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. #include <math.h>
  5. #include "math.h"
  6. #include "dumb.h"
  7. #include "void.h"
  8. int main ()
  9. {
  10. int a = 8;
  11. int b = 3;
  12. char string = 'hello';
  13. int sumAB = sum (a,b);
  14. int diffAB = diff (a, b);
  15. double meanAB = mean (a, b);
  16. printf ("The sum is: %d, the difference is: %d, the mean is: %.2f\n", sumAB, diffAB, meanAB);
  17. printf("C is %s\n", string);
  18. hello_world ();
  19. swap (&a, &b);
  20. print_nonsense ();
  21. return 0;
  22. }