C Program For Even Odd Using Function

C Program :
/* Aim: Write a function for the function prototype void isEven()*/

#include<stdio.h>

void isEven(); // isEven Function Prototype

void main()
{
	isEven();
}

// isEven Function

void isEven()
{
	int n;

	printf("\n Enter any value:- ");
	scanf("%d",&n);

	if(n%2==0)
		printf("\n %d is even number \n \n",n);
	else
		printf("\n %d is odd number \n \n",n);

} // End of code

/* output of above code:-

[root@localhost ~]# gcc -o isEven isEven.c
[root@localhost ~]# ./isEven

 Enter any value:- 2

 2 is even number 

*/