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
What is the value of c?
What is the difference between procedural and declarative language?
What is string in c language?
What is the function of this pointer?
Explain how can you tell whether a program was compiled using c versus c++?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Can a pointer be volatile in c?
write a c program for swapping two strings using pointer
What is structure in c definition?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Is c language still used?
What is a char in c?
What are the differences between Structures and Arrays?
What is pointer in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.