Find Weather The No is Positive, Negative, Zero
#include<stdio.h>}
#include<conio.h>
void main()
{
clrscr();
int n;
printf("enter the value of n");
scanf("%d",&n);
if(n>0)
{
printf("positive");
}
else if
{
printf("negative");
}
else if
{
printf("zero");
}
getch();
Comments
Post a Comment