Guest User

Untitled

a guest
May 1st, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # .DATE: 5/1/2020
  2. # .AUTHOR: FULLFLOW
  3. # .CHALLENGE: https://ironscripter.us/a-powershell-word-play-challenge/
  4.  
  5. $w = "FULLFLOW the Iron Scripter!"
  6.  
  7. # Part 1
  8.  
  9. foreach ($a in [char[]]$w) {
  10. $b += [char]$a -as [int]
  11. }
  12.  
  13. $b
  14.  
  15. # Part 2
  16.  
  17. foreach ($a in [char[]]$w) {
  18. $d = [char]$a -as [int]
  19. $e += [int]$d -as [char]
  20. }
  21.  
  22. $e
Add Comment
Please, Sign In to add comment