Write a c pgm for leap year
Answer Posted / anika
#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
int y;
cout<<"enter any number ";
cin>>y;
if(y%4==0;)
cout<<"the number entered is a leap year ";
else
cout<<"it is not a leap year ";
getch();
}
| Is This Answer Correct ? | 10 Yes | 14 No |
Post New Answer View All Answers
What are the advantages of using new operator as compared to the function malloc ()?
i got 75% in all semester am i eligible for your company
What is the purpose of & in scanf?
Explain modulus operator.
What are runtime error?
Why c is called free form language?
What is the use of getch ()?
What are pointers? Why are they used?
What is c variable?
What is return type in c?
Explain what is the use of a semicolon (;) at the end of every program statement?
What is c language & why it is used?
Write a program to reverse a linked list in c.
What are the functions to open and close the file in c language?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402