answersLogoWhite

0

// leap year by @bhi//

#include<stdio.h>

#include<conio.h> void main()

{

int year;

clrscr();

printf("Enter the Year that you want to check : ");

scanf("%d", &year);

if(year % 400 == 0)

printf("%d is a Leap Year.", year);

else

if(year % 100 == 0)

printf("%d is not a Leap Year.", year);

else

if(year % 4 == 0)

printf("%d is a Leap Year.", year);

else

printf("%d is not a Leap Year", year);

printf("\nPress any key to Quit...");

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you write a java program to find the transpose of the matrix for the given elements?

You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.


How do you write Square program using vb?

write a vb program to find the magic square


How do you write a C program to find the adjoint of a matrix?

To write a C program to find the adjoint of a matrix, first, you need to create a function to calculate the cofactor of each element in the matrix. Then, construct the adjoint by transposing the cofactor matrix. The program should read the matrix size and elements from user input, compute the cofactors using nested loops, and finally display the adjoint matrix by transposing the cofactor matrix. Make sure to handle memory allocation for dynamic matrices if needed.


How do you write socket program in c?

For first find an example program.


Write a program to find the grade obtained by the students of a class using structure?

Write a program to find the grade obtained by the students of a class


Write a c program to find eigenvalue of a matrix?

Yes, do write. That's what you always have to do when you have got a homework-program.


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Jntu 2-2 oops through java answers?

write a java program to find factorial using recursive and non recursive


Write a c program to find Volume and surface area of cube?

Write a c program to compute the surface area and volume of a cube


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


Write the program in Linux to find the reverse of any string?

i am sam


Write a C program to find sum of 3 matrices?

matrix