if statement

HELP me please
to solve this problem using if statement

Write a C++ programme that reads a sequence of integers terminated by zero value then finds the percentage of the negative numbers and the percentage of the positive number in the sequence. The programme output is as shown: :

Enter a sequence of in integers terminated by zero

6 -7 -8 10 -12 14 15 2 -6

Last edited on
Try with this site to learn https://www.learncpp.com.
closed account (z05DSL3A)
alreem,

Start by writing out what you would do in structured english[1].

Once you have this you have a basic idea of the structure your code will take and you can start expanding it into code.

____________________________________________
[1] https://en.wikipedia.org/wiki/Structured_English
> Enter a sequence of in integers terminated by zero
> 6 -7 -8 10 -12 14 15 2 -6
that doesn't end with 0
Topic archived. No new replies allowed.