Examveda

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

B. 'Example' will print 3 times

C. 'Example' will print 5 times

D. Example will generate an error message

Answer: Option A


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux