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 not
CODING
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 Output
NULL
Test Case 2
Input (stdin)
12
Expected Output
NOT NULL
No comments:
Post a Comment