Advertisement
mario_mos

test

Jul 24th, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <time.h>
  5. #include <string.h>
  6.  
  7.  
  8. int max(int a , int b)
  9. {
  10. return (a < b) ? b : a;
  11. }
  12.  
  13. int min(int a , int b)
  14. {
  15. return (a > b) ? b : a;
  16. }
  17.  
  18.  
  19. int asscii(char s)
  20. {
  21. printf("Valeur ASCII de %c est %d \n", s, s);
  22. }
  23.  
  24.  
  25.  
  26.  
  27. int main()
  28. {
  29. int a = 5 ;
  30. int b = 4;
  31.  
  32.  
  33. printf("max = %d\n", max(a,b));
  34. printf("min = %d\n", min(a,b));
  35.  
  36. char c;
  37. printf("c en asscii vaut : %d\n", asscii(c));
  38.  
  39.  
  40.  
  41.  
  42.  
  43. return 0;
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement