Computer Science, asked by krishnajm7a7h7i7, 7 months ago

Input n numbers and print the number of positive and negative number
draw a flowchart ​

Answers

Answered by kaminitripathi02
1

Answer:

Like finding a number is even or odd, finding a number positive or negative is also very simple program to write. We shall learn the use of conditional statement if-else in C.

Algorithm

Algorithm of this program is very easy −

START Step 1 → Take integer variable A Step 2 → Assign value to the variable Step 3 → Check if A is greater than or equal to 0 Step 4 → If true print A is positive Step 5 → If false print A is negative STOP

Flow Diagram

We can draw a flow diagram for this program as given below −

Similar questions