Is it possible to solve this problem in c++?
Write a program that counts the numbers from 3 to 117. But for multiples of three add 3 instead of 1 and for the multiples of five add 5 instead of 1. For numbers which are multiples of both three and five add 15 instead of 1. Ex: If we are looking at numbers 5 to 15 (inclusive), the program would output 39.
ivel 0 Newbie Poster
Maritimo 15 Junior Poster in Training
ryantroop 177 Practically a Master Poster
ivel 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
ivel 0 Newbie Poster
ivel 0 Newbie Poster
Henry Mark 0 Newbie Poster
ivel 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
ivel 0 Newbie Poster
ivel 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
ivel 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
sneekula 969 Nearly a Posting Maven
ddanbe commented: Nice +15
ivel 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
David_50 13 Junior Poster in Training
sneekula 969 Nearly a Posting Maven
ivel 0 Newbie Poster
Nimra_1 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.