Write a c pgm for leap year
Answer Posted / sarayu
void main()
{
int yr;
printf("Enter the year");
scanf("%d",yr);
if(yr%4==0)
printf("given year is leap year");
else
printf("It is not a leap year");
getch();
}
| Is This Answer Correct ? | 50 Yes | 17 No |
Post New Answer View All Answers
Why do we use return in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Compare and contrast compilers from interpreters.
Explain what are multidimensional arrays?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is exit() function?
What is the difference between new and malloc functions?
In a switch statement, explain what will happen if a break statement is omitted?
How do I convert a string to all upper or lower case?
Is the exit() function same as the return statement? Explain.
Explain the term printf() and scanf() used in c language?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
How do you declare a variable that will hold string values?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3