#include <stdio.h>

int main() {
      int num;
    printf("Enter an integer: ");
    scanf("%d", &num);
    if (num > 0) {
        printf("%d is positive.\n", num);
    } else if (num < 0) {
        printf("%d is negative.\n", num);
    } else {
        printf("The number is zero.\n");
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: