Answers for "if else check'"

C
0

if else check'

#include<stdio.h>

void main() {
  int num;
  printf("Enter the number:");
  scanf("%d", &num);

  /* check whether the number is negative number */  if (num < 0)
   { printf("The number is negative.");
}
   {else
    printf("The number is positive."); 
}
Posted by: Guest on March-10-2022

Code answers related to "C"

Browse Popular Code Answers by Language