DECLARE FUNCTION SMA$ (A$, B$)
CLS
INPUT "ENTER TWO STRINGS:"; A$, B$
PRINT " THE SMALLEST STRING="; SMA$ (A$, B$)
END
FUNCTION SMA$ (A$, B$)
A = LEN (A$)
B = LEN (B$)
IF A < B THEN S$ = A$ ELSE S$ = B$
SMA$ = S$
END FUNCTION
Questions
Quick Access
Exam Capsule
MCQ
Articles
Institutes
Notices
Top Topics
Write a function procedure to input two different strings and find the smallest string.
DECLARE FUNCTION SMA$ (A$, B$)
CLS
INPUT "ENTER TWO STRINGS:"; A$, B$
PRINT " THE SMALLEST STRING="; SMA$ (A$, B$)
END
FUNCTION SMA$ (A$, B$)
A = LEN (A$)
B = LEN (B$)
IF A < B THEN S$ = A$ ELSE S$ = B$
SMA$ = S$
END FUNCTION
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