Write a qbasic program to generate this pattern.
KATHMANDU
ATHMAND
THMAN
HMA
M
Answers
Answered by
3
Answer:
Explanation:
DECLARE SUB KINS (A$)
CLS
A$="KATHMANDU"
CALL KINS (A$)
END
SUB KINS (A$)
T=1
P=9
FOR I= 1 TO 5
PRINT TAB (T); MID$ (A$, T, P)
T=T+1
P=P-2
NEXT I
END SUB
Similar questions
World Languages,
5 months ago
Physics,
5 months ago
English,
11 months ago
Math,
11 months ago
Political Science,
1 year ago