DEV_BUT1/DEV1.1/TP03/signe.c

18 lines
263 B
C
Raw Normal View History

2022-10-18 14:49:46 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int x;
int y;
printf("donne x");
scanf("%d",&x);
printf("donne y");
scanf("%d",&y);
if (x<0 || y<0)
printf("c'est négatif");
if (x>0 && y>0)
printf("c'est positif");
return EXIT_SUCCESS;
}