Simple C Program to Check Number is Positive

Simple C Program to Check Number is Positive 



/****************************************

Simple C program to check number is positive
**********************************/
#include<stdio.h>
#include<conio.h>
void main()
{
int a= 20;
printf("\t\t***Output***\n");
if(a>0) //test condition
{
//if condition becomes true the below statement will execute
printf("%d is positive number\n",a);
}
printf("End of program");
}

            ***Output***

20 is positive number

End of program

टिप्पणी पोस्ट करा

0 टिप्पण्या