Search Results

Search: Posts Made By: jejemonx
4,392
Posted By jejemonx
I'm using the read command to read 3 inputs,...
I'm using the read command to read 3 inputs, namely num1, num2, and num3. I want to write a while loop that repeatedly asks for the correct number of inputs, which is 3.

Here's the pseudocode:...
4,392
Posted By jejemonx
Noob question: How to check the total number of inputs entered by user?
Say I have this line:
read -p "Enter 3 numbers: " num1 num2 num3;
I want to write a while loop that repeatedly asks for input if the number of inputs entered is not equal to 3.
I don't know the...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy