Write a C program to check a year is leap year or not.
#include <stdio.h> #include <conio.h> main() { int y; printf("\n enter any year"); scanf("%d", &y); if ((y % 4 == 0) && ((y % 100 != 0) || (y % 400 == 0))) printf("\n the year is LEAPYEAR"); else printf("\n the year is NOT LEAPYEAR"); getch(); }
Output:
What is Risk? Why Risk Analysis is done?
What is a Judy array?
Short Notes :Lines of Code (LOC)
What is “Top-Down and Bottom-Up Design” approach?
Write a C program to transpose of a matrix.