Checking whether a year is leap or not-Correction,
October 7, 2010 at 11:20 AM
public class Example { public void find(int n) { if((n%4==0&&n%100!=0)||(n%400==0)) { System.out.println("Leap Year") ; } else { System.out.println("Not Leap Year") ; } }
View All Comments
| View Tutorial