What is the output of the following C Program?


Loading

โœช Choose the correct option.

What is the output of the following C Program?


#include

void main()

{

int y;

scanf("%d",&y); // Given Input is 2000

if( (y%4==0 && y%100 != 0) || y%100 == 0 )

printf("%d is a leap year");

else

printf("%d is not a leap year");

}

A. 2000 is not a leap year
B. 2000 is a leap year
C. Compilation Error
D. None of these