23 lines
400 B
C
23 lines
400 B
C
|
|
#include <stdio.h>
|
||
|
|
#include <stdlib.h>
|
||
|
|
|
||
|
|
int main(void) {
|
||
|
|
int a;
|
||
|
|
int b;
|
||
|
|
|
||
|
|
printf("entrez un premier réel :");
|
||
|
|
scanf("%d", &a);
|
||
|
|
printf("entrez un second réel:");
|
||
|
|
scanf("%d", &b);
|
||
|
|
|
||
|
|
int multiplication = a * b
|
||
|
|
|
||
|
|
if (multiplication < 0)
|
||
|
|
printf("le signe de la multiplication est négatif");
|
||
|
|
else
|
||
|
|
printf("le signe de la multiplication est positif");
|
||
|
|
|
||
|
|
return EXIT_SUCCESS;
|
||
|
|
}
|
||
|
|
|