Check Birthday C Program

C Program to Check the Birthday.

Write a Program in C language to check that entered birthday is on Novmeber 20 or not.

Sample Input 1

Input

Date : 6

Month : 12

Year : 2014

Output

-1

Sample Input 2

Input

Date : 20

Month : 11

Year : 2019

Output

1

Explanation

In Sample Input 1 date comes out to be December 6, 2014. So, the output is -1.
In Sample Input 2 date comes out to be November 20, 2019. So, the output is 1.

#include <stdio.h>

int main()
{
int date, month, year;
printf("date : ");
scanf("%d",&date);
printf("month : ");
scanf("%d",&month);
printf("year : ");
scanf("%d",&year);
if((date==20)&&(month==11))
{
printf("1");
}
else
{
printf("-1");
}
return 0;
}