Which of the following keywords are used in while loop?

Trường Phan

New member
Which of the following keywords are used in while loop?
A. do
B. done
C. then
D. do and done
 
Answer: d
Explanation: while loop repeatedly performs a set of instructions until the control command returns a true exit status. The general syntax for while loop is:
Code:
while  condition is true
do
   commands
done
 

Tìm kiếm

Back
Top