Wednesday 18 March 2015

program to find number is +ve or -VE

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n enter any number:\n");
scanf("%d",&n);
if(n>=0)
printf("\n number is +ve");
else
printf("\n -ve");
getch();
}

No comments:

Post a Comment