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
Get step-by-step solutions from verified subject matter experts
