answersLogoWhite

0

Well There is no "functions"

but there is a way:

#include

main()

{

int n,num;

printf("Enter Number");

scanf("%d",n);

num = n%2;

if(n==1)

{

printf("Your number is Odd");

}

else

{

printf("Your number is Even");

}

return 0;

}

User Avatar

Wiki User

14y ago

What else can I help you with?