Write a c pgm for leap year
Answer Posted / rina
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n enter the year");
scanf("%d",&n);
if(n%4)
{
printf("the year is leap year");
else
printf("not leap year);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 11 No |
Post New Answer View All Answers
how to write optimum code to divide a 50 digit number with a 25 digit number??
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Differentiate between a structure and a union.
What are nested functions in c?
How can I write a function that takes a format string and a variable number of arguments?
What is the main difference between calloc () and malloc ()?
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?
How can I trap or ignore keyboard interrupts like control-c?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Why flag is used in c?
Explain continue keyword in c
Is exit(status) truly equivalent to returning the same status from main?
can we change the default calling convention in c if yes than how.........?
Are the variables argc and argv are always local to main?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.