Question: Write the following in PowerShell: Print the numbers from 1 to 100 inclusive, each on their own line. If, however, the number is a multiple
Write the following in PowerShell:
Print the numbers from 1 to 100 inclusive, each on their own line.
If, however, the number is a multiple of three then print Fizz instead, and if the number is a multiple of five then print Buzz.
If multiple conditions hold true then all replacements should be printed, for example 15 should print FizzBuzz.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
