Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int num;
- cout<<"Enter number: ";
- cin>>num;
- if(num>0)
- {
- cout<<"number is positive";
- }
- else if(num<0)
- {
- cout<<"number is negative";
- }
- else
- {
- cout<<"number is zero";
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment