June 9, 2023
by : Nadeem Khan
#include <stdio.h>
void find(int n);
int main()
{
int num;
printf("Enter a number : ");
scanf("%d", &num);
find(num);
return 0;
}
void find(int n)
{
if (n % 2 == 0)
printf("%d is even\n", n);
else
printf("%d is odd\n", n);
}
Output
Enter a Number : 12
12 is even
Quick Summary: