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
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What is a global variable in c?
Explain about the functions strcat() and strcmp()?
Why can’t we compare structures?
How can I change the size of the dynamically allocated array?
if p is a string contained in a string?
How can I convert a number to a string?
How will you find a duplicate number in a array without negating the nos ?
What is pointer to pointer in c language?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is the difference between array and structure in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What header files do I need in order to define the standard library functions I use?
Are bit fields portable?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop