Search:

Type: Posts; User: nsriv

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    5,055

    I said that cause i know the problem is in the...

    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>
  2. Replies
    15
    Views
    5,055

    DeadPlanet...

    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;...
  3. Replies
    15
    Views
    5,055

    ch and year both are undefined.. and int year = 0...

    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...
  4. Replies
    15
    Views
    5,055

    the year should be divisible by 400 or 4 but not...

    the year should be divisible by 400 or 4 but not by 100
  5. Replies
    15
    Views
    5,055

    Leap year program error

    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>...
Results 1 to 5 of 5