Java program to check input year is leap year or not | Learn Coding

preview_player
Показать описание
Java Full Course for Beginners...!👇👇

Please Like | Share | SUBSCRIBE our Channel..!
Learn Coding
🙏🙏🙏

Like our Facebook Page...!
Learn Coding

Don't forget to tag our Channel...!
#LeapYearProgram
#LearnCoding
#JavaLeapYearOrNot
#CheckLeapYearOrNot
#checkleapyearornotprogram
#ask4help
#leapyearprogram
#LeapYear
#leapyearornot
#CheckLeapYearProgram
Рекомендации по теме
Комментарии
Автор

import java.lang.System;
import java.util.Scanner;
class year
{
public static void main (String[] args)
{
int year ;
System.out.print(" Enter any year = ");
Scanner r=new Scanner (System.in);
year= r.nextInt();

if(year % 4 ==0)
{
System.out.print(" leap year ");
}
else
{
System.out.print("not a leap year");
}
}
}

Sir maine dusre method se bnaya hai but apki hi trick hai maine java ki shuru se class li thi apse aur ab is class me pahuch gyi hu aur ab mujhse bhot type ke program aane lge hai

mantashakhan
Автор

Sir you are very good in explaining logic
I would say you are Extraordinary

redhoodiepro
Автор

Thanks so much bhai❤
Bohut acha explain kiya aapne

enfield_kiddo_
Автор

Very nice you explained all condition why we use this condition

harikardile
Автор

Sir you're the best teacher salute haan apko

CurrentCaptain
Автор

Thanku sir so much.
Can you start java classes Daya by day in YouTube

satishreddybojanpally
Автор

Sir, I need help on creating automation in Java in Eclipse for airline reservation system. Any help ??

redhoodiepro
Автор

Sir c language ki programming ki suruaat se video ki playlist banado 🙏

dilipnakum
Автор

import java.util.Scanner;

public class LeapYear {
public static void main(String[] args) {
int year;
Scanner Y = new Scanner(System.in);
System.out.println("Enter the year you want to cheak :");
year= Y.nextInt();
if(year%4 == 0) {
System.out.println("The enterd year is leap year");
}
else {
System.out.println("The enterd year is not leap year");
}

}
}
simple then this

vishalhosamani
Автор

Sir .aap Eclipse par code run kiya kare plz sir

prabhu_maya
Автор

Sir for checking leap year we need to see both the conditions?
Why it doesn't work with one condition

chembetikarunakar
Автор

sir kya direct year%4==0 krke check nhi kr skte leap year

anujaprasad
Автор

Ja cu da pobegnem iz zemlje, oticicu za Bec autobusom na
3 dana i nestacu ih hotela. Trazice me interpol.

Mihona
Автор

Sir please answer me i have doubt sir how deta store in memory works and what type of coding use
In store any file please answer me 🙏

hichellam_iloveu
Автор

Can someone explain line 14 it's saying if it is divisible by 100 and not divisible by 100

dragontamer
Автор

Sir plz aap bataiye ki ap konsa software use karte ho

mrpromoter
Автор

run nai ho raha hai && operter

vijaykumardixit