Trending ▼
ICSE
CBSE 10th
ISC
CBSE 12th
CTET
GATE
UGC NET
Vestibulares
ResFinder
ICSE Java Programs
30 pages, 0 questions, 0 questions with responses, 0 total responses
,
0
0
Zeno Aiswar
Christ Academy ICSE School, Bangalore
10th
+Fave
Message
Profile
Timeline
Uploads
Home
>
namezeno
>
F
Also featured on:
namezeno
Formatting page ...
Fundamental and important ICSE 10 programs Free download: www.kishorepandit.com Please note may be other correct solutions to these programs. I have tried to put up the simplest and direct logics in the solutions, so that they remain easy to understand. Thanks //Leap Year 1 import java.io.*; public class ICSE { public static void main(String args[])throws IOException { InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); System.out.println("Input year"); int y=Integer.parseInt(br.readLine()); if(y%100==0)//check for century year { if(y%400==0) { System.out.println("Leap"); } else { System.out.println("Not Leap"); } } else { if(y%4==0) { System.out.println("Leap"); } else { System.out.println("Not Leap"); } } }//main }//class //Leap Year 2 import java.io.*; public class ICSE { public static void main(String args[])throws IOException { InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); System.out.println("Input year"); int y=Integer.parseInt(br.readLine()); if(y%400==0 || (y%100!=0 && y%4==0)) { System.out.println("Leap"); } else { System.out.println("Not Leap"); } }//main KP/JAVA/ICSE/programs.doc Page 1/30
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Formatting page ...
Print intermediate debugging step
Show debugging info
Hide debugging info
Horizontal lines at:
Guest Horizontal lines at:
AutoRM Data:
Box geometries:
Box geometries:
Text Data:
© 2010 - 2024 ResPaper.
Terms of Service
Contact Us
Advertise with us