(20S) and (21S) Number of Days Since January 1
|
05-20-2019, 12:52 PM
Post: #1
|
|||
|
|||
(20S) and (21S) Number of Days Since January 1
Days Since January 1
Calculate the number of days since January 1. For more information, please see: http://edspi31415.blogspot.com/2019/03/t...-days.html Input: R1: day R2: month R3: 0 if we are working in a non-leap year, 1 if we are working in a leap year Output: R4: number of days since January 1 Program: Code:
Example 1: 1/1/2019 - 5/7/2019 (non-leap year) R1: 7, R2: 5, R3: 0 Result: R4 = 126 Example 2: 1/1/2020 - 11/14/2020 (leap year) R1: 14, R2: 11, R3: 1 Result: R4 = 318 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)