Write a c pgm for leap year

Answer Posted / s.gayathri

void main()
{
int a,y;
clrscr();
printf("enter the year");
scanf("%d",y);
a=y%4;
if(a==1);
printf("leep year");

Is This Answer Correct ?    8 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can include files be nested? How many levels deep can include files be nested?

660


What is anagram in c?

521


Why cant I open a file by its explicit path?

595


What is the best way to store flag values in a program?

583


Why main is used in c?

592






How to write c functions that modify head pointer of a linked list?

548


Tell us the use of fflush() function in c language?

643


Is Exception handling possible in c language?

1588


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2747


What is the difference between arrays and pointers?

638


What is a nested formula?

607


What is the auto keyword good for?

631


Are there any problems with performing mathematical operations on different variable types?

577


Write a c program to demonstrate character and string constants?

1687


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1572