#include<stdio.h>
#include<conio.h>
void main()
{
int n,i=2,f=1;
clrscr();
printf("Enter any number - ");
scanf("%d",&n);
 if(n<0)
  {
   printf("Negative number");
  }
   else
  {
   printf("positive number");
  }
 getch();
}
INPUT
Enter any number - 5 OUTPUT
positive number

Leave a Reply

Subscribe to Posts | Subscribe to Comments

All Notes on BCA

All Notes  on BCA
BCA all subjects notes

Total Pageviews

Translate

Powered by Blogger.

Copyright © All Notes on BCA