Write a program in qbasic using the nested FOR...NEXT loop, to print the following pattern
97531
9753
975
97
9
Please answer truthfully.(As wrong answers will be reported and your account will be blocked).
May god bless you if you answer correctly
Share
Verified answer
Required Answer:-
Question:
Write a QBASIC program to display the following pattern.
97531
9753
975
97
9
Solution:
Here comes the program.
CLS
FOR I = 1 TO 9 STEP 2
FOR J = 9 TO I STEP -2
PRINT J;
NEXT J
PRINT
NEXT I
END
Algorithm:
See the attachment for output ☑.