3.2 Positive Negative And Zero

#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 if (n<0) {
    printf("the number is negative\n\n\n");
    }
    else if (n==0) // ekhane else if use na krleo cole,karon proton duita condition na manlei third ta hobe
    {
    printf("the number is Zero\n\n\n");
    }
    return 0;
}





No comments:

Post a Comment