Program to Check for Leap Year in Java by Deepak
Вставка
- Опубліковано 18 жов 2024
- #java #javatutorials #deepak #smartprogramming
☀ Java Development Course (Upto 80% off) : courses.smartp...
📞 For more details Call or What's App : +91 98887-55565
------------------------------------------------------------------------------------------
#java #hindi #deepak #JavaTutorials #DeepakPanwar #OnlineTraining #OnlineClasses
Program to Check Leap Year in C (HINDI/URDU),
Java walk through: Leap Year,
11 Find year is leap year or not in java,
Java Program for leap year,
Given year is leap year or not using if else in Java,
Concept of Leap Year,
How to check whether a given year is a leap year or not through a Java program ?.
Program for Leap Year in C (HINDI)
Program to Find Leap Year in C (HINDI)
Program to Check Whether Year is Leap Year or Not
------------------------------------------------------------------------------------------
Follow Me On Social Media :-
► Website : www.smartprogr...
► Instagram : / smart_programming
► Facebook : / smartprogramming.india
🚩🌳Professional Courses + Projects (Upto 80% off) 🌳 courses.smartprogramming.in
🔴 Core Java Playlist : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
🔴 Advance Java Playlist : ua-cam.com/play/PLlhM4lkb2sEjVsbbZ_kiixY5CcR84IQUg.html
🔴 Android Playlist : ua-cam.com/play/PLlhM4lkb2sEhdllbTIVF0rzD0coCiuHok.html
=====================================
▶ Core Java Chapter-wise Playlist ◀
⭕ 9. Collection Framework in Java | Java Data Structure : ua-cam.com/play/PLlhM4lkb2sEiOcuH1g-CUuU288qmMNpyj.html
⭕ 8. Multithreading in Java : ua-cam.com/play/PLlhM4lkb2sEh1pBs0KBb63PlKKqRx6M1a.html
⭕ 7. Strings In Java : ua-cam.com/play/PLlhM4lkb2sEh8AARH5oEivYOrMgaVsPFb.html
⭕ 6. Exception Handling : ua-cam.com/play/PLlhM4lkb2sEjaU-JAASDG4Tdwpf-JFARN.html
⭕ 5. OOP's Concepts : ua-cam.com/play/PLlhM4lkb2sEhf5NlWeYh_gdcN49pHjVP0.html
⭕ 4. Arrays in Java : ua-cam.com/play/PLlhM4lkb2sEi4UoqSmobDeA5VNI1f2w3C.html
⭕ 3. Control Statements : ua-cam.com/play/PLlhM4lkb2sEgQmNKO43i7v60no4bdc3lI.html
⭕ 2. Java Introduction : ua-cam.com/play/PLlhM4lkb2sEj6zsK25K9f15qNUATqYxGq.html
⭕ 1. Programming Basic Terminologies : ua-cam.com/play/PLlhM4lkb2sEhwPZhFmlox57kaCgMm5UgC.html
=====================================
▶Advance Java Chapter-wise Playlist ◀
⭕ 1. JDBC (Java Database Connectivity) with MySQL : ua-cam.com/play/PLlhM4lkb2sEjDXBqaYbwAoDAQKh2yczR7.html
⭕ 2. Servlet & JSP Tutorials for Beginners : ua-cam.com/play/PLlhM4lkb2sEiiEAP0uSFXiFY8KdXPnN0f.html
Sir you have such a pure soul ... Your tutorials are very clear to understand.... In whole youtube channel you are the only one whose tutorials are easy to understand...
Thanku so much sir.....😃😃
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
this is by far the most usefull and friendly beginner java course available on youtube..
A good teacher is so so imp...
Thank you sir.
best channel to improove programming logics
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Thank you so much sir ...maine bohot vedios dekhe baki chanels ke lekin aapke tarah easy way me kohi nhi padta sir , aap jo padhate ho bohot easily samj jata hai sir ,
again thank you so much sir
Hi Deepak Sir, I would like to know the step/sequence in which compiler checks for the validity of the condition in multiple if-else block program. For this example of the leap year program every if-else block is checked separately or first of all, ifs are checked then followed by else blocks?
2nd method is so easy,thnk u sir
welcome
bahut achha session rahta hai sir apka,
glad i could find this in time of need 😊.
Best of Luck.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
Best channel with best teacher ❤️
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
but sir 2016 is not divisible by 400 the answer is giving 5.04 and you told that 400 should be proper divide
Amazing Teaching technique.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
Thanks u explain this program in best way
sir, please make a video for advanced java, servlet JSP and collection framework.
Will start uploading videos from the mid of October, we are working on them.
Thks sir for this valuable information
hello A.K. Gautam,
Thanks a lot for your valuable feedback and support, keep learning 🙂🙂
Get updated to my new videos in the following link:
ua-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html
5. Exception Handling in Java : ua-cam.com/video/y-NlcLcxiKY/v-deo.html
THANK YOU SIR
Awesome Explanation sir..
Thanks and welcome.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Import.java.io.*;
Class P1
{
Public static void main()throwIOE.xception
{
Buffered reader=new input buffered reader (new input stream reader(system.in));
System.out.println("input a number");
Inta=integer.parse(input.readline());
Int k=a;
Int rev=0;
While(a
Helpful tutorial...
thank you
hii
you are doing great work
very useful video...
thank you
Hello pradip shelar,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
ua-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html
actually directly year%4==0 is enough for leap then why another logic
deeply explained, nice
thank you
helpful......tysm
Very helpful SIR Thanku!!!
Hello Kailash Singh,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
ua-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html
Well Explained
Nice videos but why don't you make in English.
String name = "Deepak sir";
system.out.println(name+ " you are great");
Very helpful sir
thanks
Thank you sir
Welcome Dear
god bless u sir
Hello pooja jain,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
ua-cam.com/users/smartprogramming
Thank you
nice one
tq u sir ....vry helpful
Nice sir. We can also use parameterized function.
nice video sir.....
thank you
best teacher
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
sir can u ans in next video why divisible by 100 if year is having 365 days?
Hello Kailash Singh,
100 concept was used because while revolving around sun, earth take some minutes, seconds and milliseconds, these minutes will create one day within 4 years but the seconds and milliseconds will take around many years to create one day, thanks it, thank you, keep learning
If you are new, Please subscribe to get updates about new videos in the following link:
ua-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html
Awesome
Thank you for your feedback. Please subscribe this channel.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Tx sir☺👍🙏
good sir
thanks
Bhai ..plz collection batado...
sure, but i have to first explain the arrays, then OOP;s and strings, then will go for collections.
sorry for inconvenience.
thank you, keep learning 🙂🙂
Why in every program u use (String args ) ? If I will not use this in every program then there is some problem ?????
what is WAP in it
Nice✌✌✌👍
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Sir why you always prefer Command Prompt instead of IDE ? Please answer this in your own words.
Through command prompt it is easier to explain each and every topic as we have to write the code manually.
Smart Programming Thank you for telling me.
Sir plzz bluej app use karo java ka liya
bluej will be used from OOP's tutorials, thank you 🙂🙂
Best
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
sir iska logic to samjha doo
Why we need to disivility by 100
why we need to check divisibility by 100
To check whether a year is a leap year or not, you need to check the following 3 conditions:
1. Any year that is divisible by 400 is definitely a leap year.
2. If it is not divisible by 400, then check if it is divisible by 100, if so, then it is NOT a leap year (even if it is divisible by 4), and
3. If the above two conditions are not satisfied we check for divisibility by 4, it it is divisible by 4 it is a leap year.
For example,
if year = 2400, it is leap year,(Condition 1 satisfied)
but if year = 2200, is NOT a leap year, (Cond. 2 satisfied),
and if year = 2020, is a leap year, (Cond. 3 satisfied).
every 4th year is leap year but century year (example 100) is not leap year and 400 year will be leap year this is answer in 1 line
for c language (year%4==0 && year%100 !=0) || (year%400== 0) ? System.out.println("its leap year ") : System.out.println ("its not leap year");
Your Number is showing Invalid
bhai aapka aawaj shifuji jaisa hai
Hello N.D.M AGARKAR,
haha, thank you
Get updated to my new videos in the following link:
ua-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html
Bhai year 2000 daal kar dekho
class LeapYear2
{
public static void main(String args[])
{
int year=2000;
if( (year%400==0) || (year%4==0 && year%100 != 0) )
{
System.out.println("leap year");
}
else
{
System.out.println("not a leap year");
}
}
}
thank you sir