Problem Description
George doesnt have a clear vision to understand whether the number is null or not. If we write a programming language means, it is very easy to understand. Help George to write a C program to check whether the given number is null or notCODING ARENA
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a==0)
printf("NULL");
else
printf("NOT NULL");
return 0;
}
Test Case 1
Input (stdin)0
Expected OutputNULL
Test Case 2
Input (stdin)12
Expected OutputNOT NULL
No comments:
Post a Comment