Write a program to input a string and print the reverse of the string.
1 Answer
CLS
INPUT"ENTER A STRING";S$
FOR I = LEN(S$) TO 1 STEP -1
B$ = MID$ (S$, I, 1)
R$ = R$ + B$
NEXT I
PRINT"THE REVERSED STRING=";R$
END
Topics from Computer
System Development Concept
2
Artificial Intelligence
4
File Handling QBASIC
44
Introduction to Digital Marketing
0
Modular programming
50
Number System
1
Object-Oriented Programming (OOP)
8
Office Personnel
1
DBMS
4
QBASIC programming
72
Computer Fundamentals
141
Related Questions
-
Who is a system analyst? What are the characteristics of system analysts? 1
-
What are the different stages of the system development life cycle (SDLC) 1
-
What do you understand about AI? What are the negative and positive aspects of AI in society? 1
-
How does an AI application work? Can a computer really think with the aid of AI? 1