Create IfThenElse.c

master
MD15 2020-04-10 12:16:50 +07:00 committed by GitHub
parent 7fd2c57071
commit 3f6ff09960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -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");
}
}