Calculates The Number Of Minutes In A Year In Java

[postlink]https://iamdaowner.blogspot.com/2012/06/calculates-number-of-minutes-in-year-in.html[/postlink]
Write a program that calculates and prints the number of minutes in a year.

Save this file as MinutesInYear.java.

02 * A calendar year in the Gregorian calendar
03 * (as well as in the Julian calendar) has either
04 * 365 (common years) or 366 (leap years) days.
05 */
06 
07public class MinutesInYear {
08  public static void main(String [] args) {
09    System.out.println("Minutes in a year(leap year): " + (60 24 *365));
10    System.out.println("Minutes in a year(common year): " + (60 24 *366));
11 
12 }
13}

0 comments:

Post a Comment

Grab the widget  IWeb Gator
Powered by Blogger.

Click the Like Button Below To Receive all updates via Facebook

Powered By Blogger Tricks |

Popular Posts