WAP to display 10 - 1 using WHILE..WEND loop in Qbasic
Answers
Answered by
3
Answer:
heyy dude. flw me I will flw you back
Answered by
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
Computer Science,
1 month ago
English,
1 month ago
English,
2 months ago
Social Sciences,
2 months ago
English,
8 months ago
History,
8 months ago