Logo 
Search:

PowerShell Forum

Ask Question   UnAnswered
Home » Forum » PowerShell       RSS Feeds

writing code

  Asked By: Youssef    Date: Jan 19    Category: PowerShell    Views: 1143
  

I am still learning powershell


Write a Powershell script that will iterate through the numbers 1-200



Next to each number that is divisble by 3 ouput to the console "1"



Next to each number that is divisble by 5 output to the console "am"



For each number that is divisible by 3 AND 5 output "i am"



Example Output:

1

2

3 1

4

5 am

.

.

15 I am

Thanks

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on writing code Or get search suggestion and latest updates.




Tagged: