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>...
Sorinx
thanks for the help.. only zeros r missing in the output but now i can make the program.. thanks..
Salem and Adak
thanks for the advice..
I hav to make a lot of programs so im just asking if anyone can help.
I don want you to write the full program. you can just provide me main loop statements if you hav time.
HI. i am new in c programming.
Please help me making a program to print this
0
101
21012
3210123
432101234