Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do{
- $x = Read-Host 'Podaj liczbe X: '
- $y = Read-Host 'Podaj liczbe Y: '
- $w = Read-Host 'Wybierz dzialanie: 1. Dodawanie; 2. Odejmowanie; 3. Mnozenie; 4.Dzielenie: '
- if ($w -eq "1"){
- [int32]$x + [int32]$y;}
- if ($w -eq "2"){
- [int32]$x - [int32]$y;}
- if ($w -eq "3"){
- [int32]$x * [int32]$y;}
- if ($w -eq "4"){
- [int32]$x / [int32]$y;}
- $k = Read-Host 'Czy chcesz kontynuowac? t/n'
- }while($k -eq "t")
- Write-Host "Koniec programu"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement