Computer Science, asked by poonam1453, 2 months ago

WAP to display 10 - 1 using WHILE..WEND loop in Qbasic​

Answers

Answered by MasterMarco
3

Answer:

heyy dude. flw me I will flw you back

Answered by allysia
4

Language:

QBASIC

Program:

CLS

WHILE I>0

PRINT I

I=I-1

WEND

END

Output:

10

9

8

7

6

5

4

3

2

1

Explanation:

  • Line 1: Clears screen.
  • Line 2: Starts while loop.
  • Line 3: Prints i.
  • Line 4: i is reduced by 1 each time the loops run.
  • Loop runs till I is greater than 0.

Attachments:
Similar questions