After running this program, as your press 4, what will be the output of the program?
#!/bin/bash
echo "How many times you want to print 'Example'"
read value
for ((i=0;i<$value;i++))
do
echo "Example";
done
exit 0
#!/bin/bash
echo "How many times you want to print 'Example'"
read value
for ((i=0;i<$value;i++))
do
echo "Example";
done
exit 0
A. 'Example' will print 4 times
B. 'Example' will print 3 times
C. 'Example' will print 5 times
D. Example will generate an error message
Answer: Option A
Related Questions on Linux
What command is used to count the total number of lines, words, and characters contained in a file?
A. countw
B. wcount
C. wc
D. count p
E. None of the above
What command is used with vi editor to delete a single character?
A. x
B. y
C. a
D. z
E. None of the above
Join The Discussion