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)
- {
- if (a > b)
- {
- printf("a > b \n", a);
- }
- if(a < b)
- {
- printf("a < b \n", b);
- }
- else {
- printf("a = b \n");
- }
- }
- int min(int a , int b)
- {
- if (a > b)
- {
- printf("a > b \n", b);
- }
- if(a < b)
- {
- printf("a < b \n"), a;
- }
- if (a == b){
- printf("a = b \n");
- }
- }
- int asscii(char s)
- {
- printf("Valeur ASCII de %c est %d \n", s, s);
- }
- int main()
- {
- int a ;
- printf("entrez a = \n ");
- scanf("%d\n", &a);
- int b ;
- printf("entrez b = \n ");
- scanf("%d\n", &b);
- max(a,b);
- min(a,b);
- char c;
- printf("Enter a character: ");
- scanf("%c", &c);
- printf("c en asscii vaut : %d\n", asscii(c));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement