Question: Linux. Write a simple script to print the numbers 1 through n , one on each line. n will be specified as a command line

Linux.

Write a simple script to print the numbers 1 through n, one on each line. n will be specified as a command line argument but if it is not specified, use a default value of 20. If the number to be printed is divisible by 3, print the string Fizz instead. If the number is divisible by 5, print the string Buzz. If the number is divisible by both 3 and 5, print the string FizzBuzz. This script should be called fizzbuzz.

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!