Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int x = 0, y = 0 ,somme = 0 ,soustraction,produit,quotient;
- printf("Saisie un nombre : ");
- int i = scanf("%d", &x);
- printf("Saisie un deuxieme nombre : ");
- i = scanf("%d", &y);
- somme = x + y;
- printf("%d + %d = %d \n", x, y,somme);
- soustraction = x - y;
- printf("%d - %d = %d \n", x, y, soustraction);
- produit = x * y;
- printf("%d * %d = %d \n", x, y, produit);
- quotient = x / y;
- printf("%d / %d = %d \n", x, y, quotient);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement