Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <time.h>
- #include <string.h>
- int max(int a , int b)
- {
- return (a < b) ? b : a;
- }
- int min(int a , int b)
- {
- return (a > b) ? b : a;
- }
- int asscii(char s)
- {
- printf("Valeur ASCII de %c est %d \n", s, s);
- }
- int main()
- {
- int a = 5 ;
- int b = 4;
- printf("max = %d\n", max(a,b));
- printf("min = %d\n", min(a,b));
- char c;
- printf("c en asscii vaut : %d\n", asscii(c));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement