Check Leap Year | Leap Year or not | Easy way for code learning #flowgorithm #leapyear
#Check leap year # how to check leap year #easycode This program verify whether the year entered by the user is a Leap year or not. It shows the result on the screen. For coding concept , click on the video link in the description. For leap year conditions, click on the video link given in the description. condition: if the year is divided by 4 , the remainder is zero , it is a leap year. Example :2012,2016,2020. and the year is divided by 100 , the remainder is zero , It is not a leap year. Example :1700,1800, 1900,2100,2200,2300. If the year is divided by 400 , the remainder is zero , It is a leap year. Example: 2000,2400,4000. These conditions are included in the program in two ways by 3 sub functions. They are parameterized functions. one - individual conditions in a separate if symbols. Multi if - function. two - Compound condition in a single if symbol. This compound condition is formed in two ways. one - by using mod. Single if Function. two - by using percentage symbol. Single if percentage function. Main Function : The Declare symbol declares integer variable year. The assign symbol sets year to zero. The output symbol displays user prompt. The input symbol stores the entered value in year variable. The call symbol executes the sub function, single if , passing year to the function. The call symbol runs the sub function, single if two, passing year to the function. The call symbol runs the sub function , multi if , passing year as parameter. Single if (mod) - function: The output symbol prints the function heading. The if symbol checks the year and if the year satisfies the conditions , the true division is executed. The output symbol prints the year as leap year. Otherwise, False division is executed. The Output symbol prints the year as not a leap year. Single if two (Percentage) - function: The output symbol prints the function heading. The if symbol checks the year and if the year satisfies the conditions , the true division is executed. The output symbol prints the year as leap year. Otherwise, False division is executed. The Output symbol prints the year as not a leap year. Multiple if () - function: The output symbol prints the function heading. if -one is the first condition : if the year satisfies that condition , the true division is executed. The output symbol prints the year as leap year. Otherwise, False division is executed. if- two is the second condition : if the year satisfies that condition , the true division is executed. The output symbol prints the year as not a leap year. Otherwise, False division is executed. if- three is the third condition : if the year satisfies that condition , the true division is executed. The output symbol prints the year as a leap year. Otherwise, False division is executed. The output symbol prints the year as NOT a leap year. What is coding! Plz , watch this video to understand coding. https://www.youtube.com/watch?v=8yY4xy-1EXk Check Leap Year Link: https://www.youtube.com/watch?v=rkR_04FIr7U #Check leap year # how to check leap year #easycode
Download
0 formatsNo download links available.