| http://www.w3.org/ns/prov#value | - Any year is entered through the keyboard, write a program todetermine whether the year is leap or not.(Use the logical operators && and ||)#include<stdio.h>main(){int year;printf(Enter the year to check for a leap year:);scanf (%d, &year);if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)){ printf(The entered year is a leap year.);}else{ printf(The entered year is not a leap year.
|