jeudi 27 août 2020

Multip Write a function to print the result of a number multiplied with its previous number until the previous number is 1

For example: If the number is 5, then result = 5 * 4 * 3 * 2 * 1 = 120 If the number is 8, then result = 8 * 7 * 6 * 5 * 4 * 3 * 2 *1=403020

Aucun commentaire:

Enregistrer un commentaire