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 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏