DECLARE SUB Rev(A$)
CLS
INPUT"Enter any string";A$
CALL Rev(A$)
END
SUB Rev(A$)
END
SUB Rev(A$)
FOR I = LEN(A$) to 1 Step-1
B$=B$ + MID$(A$,I,1)
NEXT I
PRINT"Reverse string is";B$
END SUB
Questions
Quick Access
Exam Capsule
MCQ
Articles
Institutes
Notices
Top Topics
Write a program to reverse a word input by a user in the main module
DECLARE SUB Rev(A$)
CLS
INPUT"Enter any string";A$
CALL Rev(A$)
END
SUB Rev(A$)
END
SUB Rev(A$)
FOR I = LEN(A$) to 1 Step-1
B$=B$ + MID$(A$,I,1)
NEXT I
PRINT"Reverse string is";B$
END SUB
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
PathshalaNepal.com is a Registered Company of E. Pathshala Pvt Ltd Nepal. Registration number : 289280
© 2020. All right Reversed.E. Pathshala Pvt Ltd