WAP in C++ to input a number and check whether it is positive , negative or zero.
Answers
Answered by
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
2
refer to the attachment
Attachments:
Similar questions
Math,
4 months ago
Environmental Sciences,
4 months ago
Social Sciences,
8 months ago
English,
8 months ago
India Languages,
11 months ago
Chemistry,
11 months ago