Computer Science, asked by arohi6653, 1 year ago

what is LOOPING IN QBASIC

Answers

Answered by Anonymous
2

HEY MATE !!!;;_______₹__₹₹__₹₹₹

Programming generally has two ways to control program flow. The first (which you should have learned) is a control statement.

HOPE THIS HELP YOU..


ananya7711: Tu kuch mt kr
ananya7711: Me bat kr rhi hu
ananya7711: No
ananya7711: Are ruk
ananya7711: Vo Accha h
ananya7711: Me kr rhi hu na.. Don't worry
Answered by helloday
0

Answer:

Looping in any programming language is the construct that makes the computer repeat the instructions again and again as long as the some given condition is met.

For example, let us look at a simple FOR looping statement in QBASIC.

Explanation:

EXAMPLE-

CLS

FOR i = 1 TO 10

PRINT i

NEXT i

END

In the code block above, lines 2 through 4 constitute the looping construct.

1. What instructions get repeated?

→ Any statement that’s included within FOR and it’s respective NEXT

→ In this example, the statement to display the value of ‘i’ will be repeated

2. What condition is checked before entering the loop?

→ In this example, the statement in Line 2 checks whether the value of ‘i’ falls from 1 to 10 or not. Based on the condition’s validity, the block of statements within the FOR.. NEXT block gets executed.

There are many looping statements in QBASIC other than FOR.. NEXT. We have DO.. WHILE, WHILE .. WEND, DO .. LOOP WHILE among others.

Hope that answers your question !

Please mark as brainliest

Similar questions