How to resolve the algorithm Long year step by step in the МК-61/52 programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Long year step by step in the МК-61/52 programming language

Table of Contents

Problem Statement

Most years have 52 weeks, some have 53, according to ISO8601.

Write a function which determines if a given year is long (53 weeks) or not, and demonstrate it.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Long year step by step in the МК-61/52 programming language

Source code in the мк-61/52 programming language

П0	ИП0	4	/	[x]	+	ИП0	1	ВП	2
/	[x]	-	ИП0	4	ВП	2	/	[x]	+
^	^	7	/	[x]	7	*	-	П1	4
-	x#0	40	ИП1	3	-	x#0	40	0	С/П
1	С/П

  

You may also check:How to resolve the algorithm Abbreviations, easy step by step in the Factor programming language
You may also check:How to resolve the algorithm Look-and-say sequence step by step in the MiniScript programming language
You may also check:How to resolve the algorithm Color quantization step by step in the PureBasic programming language
You may also check:How to resolve the algorithm Keyboard input/Keypress check step by step in the XPL0 programming language
You may also check:How to resolve the algorithm Empty string step by step in the Burlesque programming language