How to make PseInt easily determine when a leap year?

Who I am
Marie-Ange Demory
@marie-angedemory
EXTERNAL REFERENCES:

vgr.com gamedesigning.org Reddit.com

Author and references

Leap years are those that are divisible by 4 like 2008, and also have the distinction of bringing one more day (February 29). These years are easy to calculate and there are even codes to know what the next ones will be. With that in mind today you will learn how to make PseInt determine when a year is leap year.

And the fact is that technology has advanced so much that today you can determine what you want, simply by having the right program. This has benefited humans, such as improved response times to many questions that previously had to be answered manually.



Before starting it is recommended to download and install the latest version of Pseint, on your computer you can do it from its official website.

    Conditions for a leap year

    The first thing you need to take into account to start the process that will allow you to answer the question posed by How to make PseInt determine when a year is leap year? , are the parameters or conditions that determine whether a year is a leap year or not.

    These are: that it must be divisible by the number 4, that is, when you divide it, the final product can be 0, (some examples would be: 2006, 2008, 2012, among others).

    It is not divisible by 100. The years that satisfy the previous condition are not necessarily leap years, what really determines it is whether those that satisfy the first also enter the second.

    And finally, the final condition is that it is divisible by 400, but this is true only if the first is satisfied and not the second.



    Read What is custom ROM and what is it for? - Advantages and disadvantages

    With this information you can now proceed to create your code , since you know what are the necessary parameters that must meet each year, to earn this functionality.

    How to make PseInt determine when a year is leap year?

    With all of the above that you have read, you are ready to have PseInt determine when a year is leap year, the first thing you need to do to start the process is to open the program.

    Once inside, you need to give your program a name like: leap year. Then, use the command " Write "and put in quotation marks the message you want to appear to the user who is using the program, in your case put: put the year to be evaluated.

    Then enter the command " Read "and enter a variable with the name you want, for example year. Then you need to enter the first condition of leap years as follows:

    Put the command " Yes "then the variable year and then the command" Courage "followed by 4 = 0, it would be something like: if mod year 4 = 0.

    In the same line, followed by 0, place the function " Y "and then creates a double parenthesis ((. It places again the variable year and then the mod function to end by placing the different symbol <> and a 0, to end it closes with a parenthesis.


    With that, you will have the second condition set. Now we just have to place the third, which goes on the same line, starts with the function " O "after the parentheses.


    It continues with a new parenthesis where the year variable goes first, the mod function second, and the number 400 = 0 third, ending with a double parenthesis.


    Read What is Forbidden Error 403 and How to Fix It? - Quick and easy

    When all of the above is ready, put the function " Then " is " Write "in one line. In writing, put a message in quotation marks like: if it's a leap year.

    In the line below use the function "If not " and then " Write ", and say, it's not a leap year. With this everything will be ready, you just have to try the program. Finally the question has been answered How to make PseInt determine when a year is leap year?

    What is PseInt?

    As a little extra, you will now see that it is this program that you have come to know. Yup is substantially of an educational software which allows you to teach programming to the most inexperienced.

    This allows for the construction or creation of their own algorithms that allow a normal person to learn the basic fundamentals of this process. It was created in Argentina and supports multiple programming languages, it's also free .


    The best thing about this is that it prepares you for the future, because by learning how to use it you will gain knowledge and then you will move on to more complex programming languages ​​and you will be able to download, install and use Python without problems, for example, or even activate or enable javascript in any web browser, for your continuous use (there will no longer be limits for you).

    add a comment of How to make PseInt easily determine when a leap year?
    Comment sent successfully! We will review it in the next few hours.