Draw a boolean algebra flowchart to find whether the number is positive or negative
Answers
Answered by
37
Answer:
Tool used: Flowgorithm
You can also use this tool to view the source code in different programming languages like Python, Java, Perl, C++, etc.
Answered by
9
To check whether a number is positive, negative, odd, even or zero. This problem is solved using if…elif…else and nested if…else statement.
Approach :
A number is positive if it is greater than zero. We check this in the expression of if.
If it is False, the number will either be zero or negative.
This is also tested in subsequent expression.
In case of odd and even A number is even if it is perfectly divisible by 2.
hope this will help you ..
Similar questions