Qbasic Question :-
Input A Character And Check It Is Alphabet..
Draw Flowchart , Make Algorithm And Make QBASIC Program..
Answers
Answered by
3
CLS
INPUT "enter a letter or a number"; A$
LET C$ = UCASE$(A$)
IF C$ = "A" OR C$ = "B" OR C$ = "C" OR C$ = "D" OR C$ = "E" OR C$ = "F" OR C$ = "G" OR C$ = "H" OR C$ = "I" OR C$ = "J" OR C$ = "K" OR C$ = "L" OR C$ = "M" OR C$ = "N" OR C$ = "O" OR C$ = "P" OR C$ = "Q" OR C$ = "R" OR C$ = "S" OR C$ = "T" OR C$ = "U" OR C$ = "V" OR C$ = "W" OR C$ = "X" OR C$ = "Y" OR C$ = "Z"
THEN PRINT "Its an alphabet"
ELSE PRINT "Its not"
END
INPUT "enter a letter or a number"; A$
LET C$ = UCASE$(A$)
IF C$ = "A" OR C$ = "B" OR C$ = "C" OR C$ = "D" OR C$ = "E" OR C$ = "F" OR C$ = "G" OR C$ = "H" OR C$ = "I" OR C$ = "J" OR C$ = "K" OR C$ = "L" OR C$ = "M" OR C$ = "N" OR C$ = "O" OR C$ = "P" OR C$ = "Q" OR C$ = "R" OR C$ = "S" OR C$ = "T" OR C$ = "U" OR C$ = "V" OR C$ = "W" OR C$ = "X" OR C$ = "Y" OR C$ = "Z"
THEN PRINT "Its an alphabet"
ELSE PRINT "Its not"
END
Answered by
0
is a correct answer hope It helped you
Attachments:
Similar questions