Java program to count positive, zero and negative numbers

In this post, we will see Java program to count positive, zero and negative numbers

Output:

Enter 10 Numbers : 10 0 45 -10 67 0 76 -33 64 -92
5 Positive Numbers
3 Negative Numbers
2 Zero

That’s all about Java program to count positive, zero and negative numbers

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *