Suppose number is a variable of type int write an if-else


Question: Suppose number is a variable of type int. Write an if-else statement that outputs the word "Positive" if the value of the variable number is greater than 0 and outputs the words "Not positive " if the value of number is less than or equal to 0.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Suppose number is a variable of type int write an if-else
Reference No:- TGS02404314

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)