Create IfThen.c

master
MD15 2020-04-10 12:15:42 +07:00 committed by GitHub
parent 86bae39e32
commit 96c0844568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

11
05. Percabangan/IfThen.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
int main () {
int number;
scanf("%d",&number);
if (number>0) {
printf("%d\n",number);
}
else {
printf("");
}
}