Somma delle cifre 1

2013-05: Small 1
Write a program that finds all the numbers less than 1000 that contain only digits that sum to 10, e.g. 55, 73, 137, but not 423.
How many are there?
2012-11: Math 1
Find all the numbers less than 1000, where the sum of the digits is 15, for example 96 or 177.
How many are there?
(…)

Scrivi un programma che trova tutti i numeri minori di 1000 la cui somma delle cifre sia uguale a 10 (15).
Quanti sono?

Soluzione

La somma delle cifre per i numeri minori di 100

La somma delle cifre per i numeri minori di 1000

I numeri con una certa somma delle cifre

Quanti sono?

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *