3.1 Positive or Negative

#include <stdio.h>
int main()
{
    int n;
    printf("enter the number:" );
    scanf("%d", &n);
    if (n>=0) {
    printf("the number is positive\n\n\n");
    }
    else {
    printf("the number is negative\n\n\n");
    }
    return 0;
}




No comments:

Post a Comment