Day of the week: Difference between revisions

Line 1,190:
</pre>
 
=={{header|??МК-61/52}}==
<lang>?9П9 7 ?7П7 1 ?8П8 ???НОП ??8ИП8 2 2 -
1 0 / [x] ?6П6 ??9ИП9 + 1 8 9
9 - 3 6 5 , 2 5 * [x]
??8ИП8 ??6ИП6 1 2 * - 1 4 - 3
0 , 5 9 * [x] + 2 9 +
??7ИП7 + ?4П4 ??4ИП4 7 / [x] 7 * -
x=0 64 ??9ИП9 ?С/?П ??9ИП9 1 + ?9П9 ??БП 06</lang>
 
''Input:'' ?XРX: starting year.
 
''Output:'' the year in which Christmas falls on a Sunday. For example, enter ''2008'', the first result: ''2018'' (''January 7, 2018'' is Sunday).