Dukascopy
 
 
Wiki JStore Search Login

Четное или нечетное число
 Post subject: Четное или нечетное число Post rating: 0   New post Posted: Sun 18 Nov, 2018, 14:19 
User avatar

User rating: 1
Joined: Tue 23 Oct, 2018, 09:13
Posts: 5
Location: Russian Federation, Санкт-Петербург
Задался вопросом, как определить целое число четное или нечетное. Поскольку, как я понял, готовых функций (решений) нет, то решил здесь предложить свой вариант для оценки на наличие ошибок или для подтверждения, что вариант действительно будет давать то, что задумано - безошибочно определять - четное число или нет.

Прикладываю снимок кода и исходник.

Image


Attachments:
chet_ne_chet.vfs [25.24 KiB]
Downloaded 635 times
chet_ne_chet.png [385.15 KiB]
Downloaded 1095 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com