Traditional Culture Encyclopedia - The 24 Solar Terms - The problem of transmitting data in simple language
The problem of transmitting data in simple language
Version 2
Support library specification
. Subroutine _ Button 2_ was clicked.
. Local variable solar term ID, integer type
. Solar term id of local variable to be displayed, integer type, "3"
. Local variable remainder, integer type
Solar id = to an integer (edit box 1. Content)' Enter the solar term id, such as the first solar term input 1.
Remainder = to integer (solar term ID)% 24
Debug Output (Remaining)
If (remainder ≠ 0)
Solar term ID to be displayed [1] = remainder
Solar term ID to be displayed [2] = remainder+1
If (remainder +2 ≥ 25)
The solar term ID to be displayed [3] = remainder-to integer (solar term ID)+ 1.
Otherwise.
Solar term ID to be displayed [3] = remainder +2
If it's over
Otherwise.
Solar term ID to be displayed [1] = 24
Solar term ID to be displayed [2] =1
Solar term ID to be displayed [3] = 2
If it's over
Debugging output (display solar term id)
- Previous article:What does chanting mean?
- Next article:Baby chick, what does it mean to test stinging in your 24 solar terms?
- Related articles
- It is easy to catch a cold after a light snow. It is suggested to keep out cold and resist diseases.
- Huainan east station introduction?
- Late spring poems rewritten in 300 words
- Guide to safe fruit bouquets
- Why is the winter solstice like a year?
- Why does beginning of spring have the custom of "biting the spring"?
- Passat Yu Ling 06 is equipped with a throttle after washing. Is there oil and fire but no car?
- As the saying goes, "a thousand years ago it was rain, and a thousand years later it was a ghost." Isn't it good to rain after the Millennium?
- The best way to adjust the valve of scooter.
- Characteristics and customs of stinging —— Introduction of characteristics and customs of stinging