/*WAP to find a number is even or odd using function
with arguments but not return a value*/
#include<stdio.h>
void fn(int);
int main()
{
int n;
printf("Enter n = ");
scanf("%d",&n);
fn(n);
return 0;
}
void fn(int i)
{
if(i%2==0)
printf("\nIts Even= %d",i);
else
printf("\nIts odd= %d",i);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: