C++ Program to find input number is positive or negative. #include<iostream.h> #include<conio.h> void main() { int n; clrscr(); cout<<"\nEnter any number "; cin>>n; if(n>0)
{ cout<<"\n Its Positive Number";
} else
{ cout<<"\n Its Negative Number";
} getch(); |
Computer Science :: 11th/12th, Computer Engineering :: Degree/Diploma, Coding Concept ( C, C++ & JAVA Programming, JDBC Concept, DBMS - SQL Concept, Data Structure, Communication & Network Concept.
Monday, August 2, 2021
C++ Program to find input number is positive or negative.
Subscribe to:
Post Comments (Atom)
15 August vs 26th January
ध्वजारोहण (Flag Hoisting) और झंडातोलन/ध्वजोत्तोलन (Flag Unfurling) दोनों में अर्थ, परंपरा और प्रक्रिया का अंतर होता है। ध्वजारोहण 15 अगस्त ...
No comments:
Post a Comment