System.out.println(” nn for-loop exercise:
Question
System.out.println(” nn for-loop exercise: “);// TODO Auto-generated method
stub
// To Calculate leap years that particular year must be divisible by 4,
// and if its a century year like 1800,1900,2000, it must be divisible by 400
// we need to calculate the leap years from 2016 to 3000 and are divisible by 27 hence we use a for loop to navigate through the years
int i;
int ;// set a counter to calculate the no of
for (//?)
{
if (//?)
{
System.out.println(“The leap year: ” +i+” is divisible by 27″);
//count= ?;
}
}
System.out.println(“The Total Number of leap years between 2016 and 3000 that are divisible by 27 are: “+count);
i dont understand this homework. please help
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
