Vidyalelo
Computer Science · Q387

Linux

Engineering and GATE · Computer Science · question 387

Q387

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

A.
'Example' will print 4 times
Answer
B.
'Example' will print 3 times
C.
'Example' will print 5 times
D.
Example will generate an error message

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board