C Program to Find Number is Even
/****************************************
Simple C program to check number is even number
**********************************/
#include<stdio.h>
#include<conio.h>
void main()
{
int number;
printf("\t\t**Output\n");
printf("Enter any number to check it is even\n");
scanf("%d",&number);
if( number%2==0) //test condition
{
//if condition becomes true the below statement will execute
printf("%d is even number\n",number);
}
printf("End of program");
}
**Output
Enter any number to check it is even
22
22 is even number
End of program
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏