Skip to content

Instantly share code, notes, and snippets.

@JFFail
Created August 25, 2015 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JFFail/72fc582b7760ddba25db to your computer and use it in GitHub Desktop.
Save JFFail/72fc582b7760ddba25db to your computer and use it in GitHub Desktop.
Reddit Daily Programmer #229
#https://www.reddit.com/r/dailyprogrammer/comments/3i99w8/20150824_challenge_229_easy_the_dottie_number/
$number = Read-Host "Enter a number"
do {
$previous = $number
$number = [math]::Cos($number)
} while($number -ne $previous)
Write-Host $number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment