I said that cause i know the problem is in the code and not in the leap year logic..
Here is the correct code
Thanks for the help guys.
#include<stdio.h>
#include<conio.h>
Type: Posts; User: nsriv
I said that cause i know the problem is in the code and not in the leap year logic..
Here is the correct code
Thanks for the help guys.
#include<stdio.h>
#include<conio.h>
DeadPlanet
Yes scanf is missing for ch.. i added it on the code..
but still program has errors.. year is not initialised
#include<stdio.h> #include<conio.h> void main() { int year;...
ch and year both are undefined.. and int year = 0 is also not working
Im too confused about this.. but actually logic is not important.. only the program must run.
I get this output after...
the year should be divisible by 400 or 4 but not by 100
I need to make a program to check leap year by using - if statement, logical operator and ternary operator from switch statement
Please correct this code.. its not working
#include<stdio.h>...