My Favorite CS Puzzle – An Interactive Walkthrough
1–3 of 3 posts
Re: My Favorite CS Puzzle – An Interactive Walkthrough
#2I think the value of a repeated number can be found much easier:
```
long sum = 0;
for (int i = 0; i printf("Element %d\r\n", sum);
```
Re: My Favorite CS Puzzle – An Interactive Walkthrough
#3I think the value of a repeated number can be found much easier: ``` long sum = 0; for (int i = 0; i printf("Element %d\r\n", sum); ```
This doesn't work if more than one value repeats itself.