/*wap to find whether the given int is positive, negetive or zero*/ #include<stdio.h> #include<conio.h> void main() { int n; clrscr(); printf("enter any number:"); scanf("%d",&n); if(n==0) printf("the number is zero"); else if(n>0) printf("the number is positive"); else if(n<0) printf("the number is negetive"); getch(); }
No comments:
Post a Comment