Create IfThenElse.c
parent
7fd2c57071
commit
3f6ff09960
|
@ -0,0 +1,14 @@
|
|||
#include <stdio.h>
|
||||
int main () {
|
||||
int number;
|
||||
scanf("%d",&number);
|
||||
if (number>0) {
|
||||
printf("positif\n");
|
||||
}
|
||||
else if (number==0) {
|
||||
printf("nol\n");
|
||||
}
|
||||
else {
|
||||
printf("negatif\n");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue