Write a QBasic program to take a sentence as input, convert it to lowercase, print the converted
sentence and find whether the word “not” is present in the sentence or not. If present then print
“negative” else print “positive”.
Answers
Answered by
0
Answer:
10 CLS 20 INPUT " ENTER A NUMBER"; NUM
20 IF NUM < 0 THEN
30 PRINT"ENTERED NUMBER IS A NEGATIVE NUMBER"
40 ELSE IF NUM = 0 THEN
50 PRINT "ENTERED NUMBER IS ZERO"
60 ELSE PRINT" ENTERED NUMBER IS A POSITIVE NUMBER"
70 END IF
80 END
Explanation:
THIS IS THE ANSWER
Similar questions