OOPS Lab-2
Post date: Oct 24, 2017 6:14:15 AM
Objective : Orientation, Get familiar with editing, compiling and executing java programs.
WAJP to check if a given year is a leap year..
If the year is
(divisible by 4 but not 100) or divisible by 400
Check if its correct by using the (unix) cal command
$cal 2004
$javac CheckLeap.java
$java CheckLeap 2004 à What is the output
WAJP to print the the first N Fibonacci nos
$javac Fib.java
$java Fib 10 à What is the output
1 1 2 3 5 8 13 21 34 53