-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
The Modern C++ Challenge
Write a program that calculates and prints the sum of all the natural numbers divisible by either 3 or 5, up to a given limit entered by the user.
Write a program that, given two positive integers, will calculate and print the greatest common divisor of the two.
Write a program that will, given two or more positive integers, calculate and print the least common multiple of them all.
Write a program that computes and prints the largest prime number that is smaller than a number provided by the user, which must be a positive integer.
Write a program that prints all the sexy prime pairs up to a limit entered by the user.
Write a program that prints all abundant numbers and their abundance, up to a number entered by the user.
Write a program that prints the list of all pairs of amicable numbers smaller than 1,000,000.
Write a program that prints all Armstrong numbers with three digits.
Write a program that prints the prime factors of a number entered by the user.
Write a program that displays the normal binary representations, Gray code representations, and decoded Gray code values for all 5-bit numbers.
Write a program that, given a number entered by the user, prints its Roman numeral equivalent.
Write a program that determines and prints which number up to 1 million produces the longest Collatz sequence and what its length is.
Write a program that computes the value of Pi with a precision of two decimal digits.
Write a program that validates that 10-digit values entered by the user, as a string, represent valid ISBN-10 numbers.
Change the font size
Change margin width
Change background colour