Page 1 of 1

JavaScript

Posted: Tue Jul 12, 2022 8:22 am
by answerhappygod
JavaScript
Javascript 1
Javascript 1 (29.65 KiB) Viewed 25 times
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