The calculation isn't hard. All you'd need would be some very fundamental arithmetic, a loop, and a branch. If you haven't done so, you should start by reviewing the basics thread stuck to the top of this forum.
You'll want to have done the following:
- get a basic hello world running
- exercise the arithmetic operators and print some results to the screen
- make a for loop that adds up the numbers from 1 to, say, 1000
- modify that loop to omit multiples of 13, that is, to only add number n if n is divisible without remainder by 13.
If you understand those things, you should be able to write this without a hitch, and all of those things you should be able to get at least a good start on from the tutorials.
jon.kiparsky
Posting Virtuoso
1,849 posts since Jun 2010
Reputation Points: 383
Solved Threads: 187
Skill Endorsements: 3
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16