Write a Program to input a number and check number is positive or not.
In this program we input a number and check number is positive or not. If number is greater than Zero, then number is positive. #include<stdio.h> #include<conio.h> void main() { int n; clrscr(); printf("Enter a number="); scanf("%d",&n); if(n>0) printf("Positive number"); else printf("Not positive number"); getch(); } Follow for recently updates.

Comments
Post a Comment