explain while loop with example
Answers
Answered by
12
Answer:
A "While" Loop is used to repeat a specific block of code an unknown number of times, until a condition is met. For example, if we want to ask a user for a number between 1 and 10, we don't know how many times the user may enter a larger number, so we keep asking "while the number is not between 1 and 10".
Answered by
5
Answer:
OK hope it helps you thanks
Attachments:
Similar questions
Hindi,
2 months ago
Social Sciences,
2 months ago
Social Sciences,
2 months ago
History,
4 months ago
Science,
4 months ago
Math,
9 months ago
Chemistry,
9 months ago
Physics,
9 months ago