C PROGRAM - IF STATEMENT

 IF STATEMENT

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int num;
    printf("enter a number!\n");
    scanf("%d",&num);
    if(num>5)
    {
        printf("number is possitive");
    }else
    {
        printf("number is negative");
    }
    return 0;
}

OUT PUT



Comments