15. Write a C program to check whether a number is negative, positive or zero. Solution :- #include<stdio.h> #include<conio.h> void main() { clrscr(); int a; printf("Enter the number :-"); scanf("%d",&a); if (a>0) { printf("%d The number is Positive...."); } else if(a<0) { printf("%d The number is Negative......"); } else { printf("%d The number is Zero......") ; } getch(); } Output :-
All computer course for class 9th to 12th with proper practical and theory .........