dartboard code

For every number on a dartboard (1 to 20), work out the possible single, double and treble scores. (For example, the number 20 has the possible score 20, 40 and 60.) Your output should look like 20 = 20,40,60 (You must use a for loop in your code).
Last edited on
Hi,

This is not a homework site. People are willing to help, but you must provide some effort yourself. Posting the same topic multiple times is also frowned upon, it's ultimately a time waster for those who reply.

Some things to do, to help get more replies: Always use code tags http://www.cplusplus.com/articles/z13hAqkS/ ; Post your compiler errors / warnings verbatim; Post a link to the actual assignment text, sometimes there are problems with misinterpretation of that; Describe what you think the problem with your code is; Look for solutions using Google and wiki; Look at the reference material on this site (top left of this page), and elsewhere.

http://www.cplusplus.com/doc/
http://en.cppreference.com/w/cpp
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines.html#main
Last edited on
Also, It would good if you could post (or move them there) these questions on the Beginners Forum.
Topic archived. No new replies allowed.