Question: Write a Mathematica function countdown [n_-] that prints the numbers from n down to 1, then prints Blast off!. Use the For function. For example:

 Write a Mathematica function countdown [n_-] that prints the numbers from

Write a Mathematica function countdown [n_-] that prints the numbers from n down to 1, then prints "Blast off!". Use the For function. For example: In [1]: = countdown [5] 5 4 3 2 1 Blast off! Write another function countdownList [list_-] that prints the elements of list backwards, then prints "Blast off!". For example: In [2]: = countdownList[{1, 1, 2, 3, 5, 8}] 8 5 3 2 1 1 Blast off

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!