Program to check whether the Given number is +ve or –ve using Ternary Operator
# include<stdio.h> #include<conio.h> main() { int a; printf (“enter a value”); scanf ("%d", & a)...
https://www.computersprofessor.com/2016/06/program-to-check-whether-given-number_10.html
# include<stdio.h>
#include<conio.h>
main()
{
int a;
printf (“enter a value”);
scanf ("%d", & a);
(a > 0)? printf (“given number is positive”) : printf (“given number is negative”);
getch();
}