Reputation:
I am new to PowerShell and I wanna try out a "Hello, (name)." program. Problem is I can't find an input function nor an output one.
Is there a PowerShell function I can use to get input like input
in Python and output like cout
in C++?
Upvotes: 0
Views: 144
Reputation: 453
Try:
$User = Read-Host -Prompt "Name"
echo "Hello $User"
Powershell support many languages.
Upvotes: 1