Files
Oleg A. Glushko 06ee65d9e5 Please, merge my PowerShell examples for all chapters (#106)
* PowerShell 01_introduction_to_algorithms example

* PowerShell 02_selection_sort example

* PowerShell 03_recursion examples

* PowerShell 04_quicksort examples

* PowerShell 05_hash_tables examples

* PowerShell 06_breadth-first_search example

* PowerShell 07_dijkstras_algorithm example

* PowerShell 08_greedy_algorithms example

* Powershell 09_dynamic_programming example
2019-03-28 14:49:20 -07:00

14 lines
163 B
PowerShell

function Get-GRKFact
{
param ($x)
if ($x -eq 1)
{
return 1
}
else
{
return $x * (Get-GRKFact ($x-1))
}
}
Get-GRKFact 5