Споделям решенията си на по-интересниte задачи от темата за условни конструкции
Convert Number To String
Write a program that converts a number in the range [0...999] to a text corresponding to its English pronunciation.
Exemples :
0 - > "zero"
273 - > "two hundred seventy-three"
400 - > "four hundred"
501 - > "five hundred and one"
711 - > "seven hundred and eleven"
Sum of subset
We are given 5 integer numbers. Write a program that checks if the sum of some subset of them is 0.
Example: 3, -2, 1, 1, 8 -> 1+1-2=0.
Няма коментари:
Публикуване на коментар