1
Answer

C# mod operator

Dave Green

Dave Green

10y
2.1k
1
Hi I' a bit unsure of this what would be the best way to do the following example?
 
There are four whole numbers below the number 14 that are multiples of either 4 or 7. 
They are: 4, 7, 8 and 12 The sum of these numbers is 31 Write a C# program to find all the
multiples of either 4 or 7 between, and including, 100 and 120. Sum the found multiples and print
the total out to the console.
Also print out how long your program took to execute.

Thanks alot!!!
Answers (1)
Next Recommended Forum