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)...

# 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();
}

Related

C Programs 685082056210010406

Post a Comment

emo-but-icon

item