Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
MkMrA2
Blog:
http://mkmra2.blogspot.com/
Linkedin Link:
http://www.linkedin.com/in/mkmra2
MkMrA2's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Soooo... I have this pattern... 110011001100...
[3 Replies]
18-May-2011 02:28 PM
Forum:
Programming Questions
I have this pattern:
11001100110011001100…
I’d like to write a function which returns 1 or 0 based on the position in this list. That is, an input of 0 returns 1. An input of 1 returns 1. An input of 2 returns 0. An input of 3 returns 0, etc.
Can anyone provide a clever way to code this?
Thanks!
«Prev
Next »
Moderate user : MkMrA2
Forum