Complete the program below so that it displays the value of n and the message " is positive." if n is positive. If n is negative, the program should display the value of n and the message " is negative." If n is zero, the program should produce no output at all.
```
#include
int
main(void)
{
double n;
printf("Enter a number> ");
scanf("%lf", &n);
```
```
if (n > 0)
printf("%.2f is positive.\n", n);
else if (n < 0)
printf("%.2f is negative.\n", n);
return (0);
}
```
You might also like to view...
Use of DHCPv6 for address assignment will result in a locally unique host identifier that changes when you move to a different network.
Answer the following statement true (T) or false (F)
The method ____ pushes character values back onto the input stream.
A. cin.ignore() B. cin.put() C. cin.putback() D. cin.peek()
Explain how to use mail merge to send a personalized message via email.
What will be an ideal response?
____________________ refers to changes in the requirements of the project as the project is being constructed.
Fill in the blank(s) with the appropriate word(s).