Untitled
unknown
plain_text
2 years ago
356 B
12
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;
}Editor is loading...