The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
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