JavaScript
Posted: Tue Jul 12, 2022 8:22 am
JavaScript
3. Combinations Write a program that calculates how many solutions in natural numbers (including zero) has the equation: ∗∗×1∗∗\+∗∗×2∗∗\+∗∗×3∗∗\+∗∗×4∗∗\+∗∗×5∗∗=∗∗n∗∗ Input - The input consists a single number - n - integer Output - Print on the console the total number of solutions
Examole
3. Combinations Write a program that calculates how many solutions in natural numbers (including zero) has the equation: ∗∗×1∗∗\+∗∗×2∗∗\+∗∗×3∗∗\+∗∗×4∗∗\+∗∗×5∗∗=∗∗n∗∗ Input - The input consists a single number - n - integer Output - Print on the console the total number of solutions
Examole