#include<stdio.h> #include<stdlib.h> Void main() { int a; Printf("Enter a number : ") ; Scanf(" %d",&a) ; if(a>=1) { Printf("%d is a positive number ",a); } else { Printf("%d is negative nunumber",a); } } |
Simple Out put :
Enter a number : -5 -5 is a negative number