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
Explain how can you restore a redirected standard stream?
How do you use a 'Local Block'?
Tell me with an example the self-referential structure?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is the difference between char array and char pointer?
What is array in c with example?
How can I write functions that take a variable number of arguments?
What are the data types present in c?
What are the types of unary operators?
Explain what are bus errors, memory faults, and core dumps?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is the meaning of typedef struct in c?
What is the difference between a string and an array?
What does calloc stand for?
Why pointers are used in c?