wap to find whether the given int is odd or even


/*wap to find whether the given int is odd or even*/

#include<stdio.h>
#include<conio.h>

void main()

{
	int n;
	clrscr();

	printf("enter any int:");
	scanf("%d",&n);

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

	getch();
}

No comments:

Post a Comment