Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1)
- function nagyobb
- {
- $n = read-host „Add meg az első számot:”
- $m = read-host „Add meg az második számot:”
- If($n -gt $m){return $n}
- If($m -gt $n){return $m}
- If($n -eq $n){return $n}
- }
- function arlista
- {
- }
- #3)
- function sarkany
- {
- $a = Get-Random -minimum 1 -maximum 11
- Add-Content C:\Users\gl9uin\Desktop\karok.txt "`nA sari lebontott $a tornyot"
- }
- #4)
- function OkozottKarok
- {
- Get-Content C:\Users\gl9uin\Desktop\karok.txt | Where-Object{$_ -match "\d+(,\d+)?"} |
- ForEach-Object{[double]($matches[0] -replace ",",".")} |
- Measure-Object -Sum |
- Select-Object -ExpandProperty sum
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement