Jump to content

Feb 29Th Puttinodi Age Ni Govt Vaallu Etla


Recommended Posts

Posted

calculate chesthaaru informal ga intlo vallu elagolaa age calculate chestharu kaani govt database lo enter chesetappudu age coloumn lo etta calculate chesi vesthaaru

Posted

aa case ki kooda code rastaru gaa ..report ela generate avvalo..if leap yr enter itae ani DOB column lo..simple..!!

Posted

for every problem there is a solution with some condition and logical code kada

Posted

aa case ki kooda code rastaru gaa ..report ela generate avvalo..if leap yr enter itae ani DOB column lo..simple..!!

 

aa logic etta raastharoo idea undaa

Posted

for every problem there is a solution with some condition and logical code kada

 

telusuraa kani coding lo emani raastharo thelsukundamani adigaraa

Posted

telusuraa kani coding lo emani raastharo thelsukundamani adigaraa

 

else if (year % 400 == 0)

Posted
private boolean isLeapYear()
{
    // No leap years occured before 1582 because that is when they were added to the calendar
    if(year > 1582)
    {
        // All code past here only executed when year mod 4 is true
        if(year % 4 != 0)
        {
            return false;
        }
 
        // Makes sure that it does not register the beginning of centuries as leap years
        // unless they actually are.
        else if(year % 100 == 0 && year % 400 != 0)
        {
            return false;
        }
        // Also is the same as checking for mod 4 and mod 100, since they are factors of 400
        else if(year % 400 == 0)
        {
            return true;
        }
        else
        {
            return true;
        }
    }
    return false;
}
 
Posted

 

private boolean isLeapYear()
{
    // No leap years occured before 1582 because that is when they were added to the calendar
    if(year > 1582)
    {
        // All code past here only executed when year mod 4 is true
        if(year % 4 != 0)
        {
            return false;
        }
 
        // Makes sure that it does not register the beginning of centuries as leap years
        // unless they actually are.
        else if(year % 100 == 0 && year % 400 != 0)
        {
            return false;
        }
        // Also is the same as checking for mod 4 and mod 100, since they are factors of 400
        else if(year % 400 == 0)
        {
            return true;
        }
        else
        {
            return true;
        }
    }
    return false;
}

 

CITI_c$y

Posted

 

private boolean isLeapYear()
{
    // No leap years occured before 1582 because that is when they were added to the calendar
    if(year > 1582)
    {
        // All code past here only executed when year mod 4 is true
        if(year % 4 != 0)
        {
            return false;
        }
 
        // Makes sure that it does not register the beginning of centuries as leap years
        // unless they actually are.
        else if(year % 100 == 0 && year % 400 != 0)
        {
            return false;
        }
        // Also is the same as checking for mod 4 and mod 100, since they are factors of 400
        else if(year % 400 == 0)
        {
            return true;
        }
        else
        {
            return true;
        }
    }
    return false;
}

 

 

brahmam5.gif

×
×
  • Create New...