Last updated on:May 26th, 2018,

program to find the positive and negative number

Write a program to find the positive and negative number?

Logic:

Number is positive if number > 0

For example: 4 > 0  so 4 is a positive number

Number is negative if number < 0

For example: -4 < 0  so -4 is a negative number

Program:

Program with Comments:

Output:

positive, negative number in c++

0Shares

Leave a Reply

Your email address will not be published.