Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
356 B
6
Indexable
#include <stdio.h>
#include <stdlib.h>

int main() {
    int a;
    printf("nhap mot so bat ky: ");
    scanf("%d", &a);
    if (a > 0) {
        printf("%d is a positive number\n", a);
    } else if (a < 0) {
        printf("%d is a negative number \n", a);
    } else {
        printf("the number entered is zero\n");
    }
    return 0;
}