Computer Science, asked by dasashmita2008, 8 months ago

WAP in C++ to input a number and check whether it is positive , negative or zero.

Answers

Answered by Itzraisingstar
9

Answer:

Explanation:

The program output is shown below.

#include<iostream>

int num;

cout << "Enter the number to be checked : ";

cin >> num;

if (num >= 0)

cout << num << " is a positive number.";

cout << num << " is a negative number.";

return 0

Answered by Anonymous
2

refer to the attachment

Attachments:
Similar questions