#include <iostream.h> #include <conio.h> int main() { int a; cout << "Enter a:"; cin >> a; a>=0 ? cout<<"Positive" : cout<<"Negative"; getch(); return 0; }
#include <iostream.h> #include <conio.h> int main() { int a; cout << "Enter a:"; cin >> a; a>=0 ? cout<<"Positive" : cout<<"Negative"; getch(); return 0; }