Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. Brian Kernighan

Insert interval

Language Java | Level Intermediate | Category Data structure | September 9, 2015 10:21 am


Data structure Description

Write a program to display interval between lower range and higher range elements.


Output

   					 

Array of years: [1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999]
Get range from 1988 to 1994: 1988 1989 1990 1991 1992 1993 1994

				    

Comments


No comments available!

Please login to add comments.