Computer Studies

Correct the mistakes in the following flowchart and write the program. The given flowchart is to accept one positive and one negative number. It also checks whether the sum is a positive number or a negative number.

Correct the mistakes in the given flowchart to accept one positive and one negative number. It also checks whether the sum is a positive number or a negative number. Class 7 ICSE Understanding Computer Studies

QBASIC: Conditional Statements

8 Likes

Answer

Flowchart

Corrected flowchart to accept one positive and one negative number. It also checks whether the sum is a positive number or a negative number. Class 7 ICSE Understanding Computer Studies

QBASIC Program

Cls
Input "ENTER TWO NUMBERS"; A, B
Let S = A + B
If S >= 0 Then Print "POSITIVE NUMBER" Else Print "NEGATIVE NUMBER"
End

Output

ENTER TWO NUMBERS? 40,-60
NEGATIVE NUMBER

Answered By

4 Likes


Related Questions