FIND NUMBER PARITY
( Even or Odd )
Code :
#include<stdio.h>
int main()
{
int n;
printf("Enter a number: ");
scanf("%d", &n);
if ( n%2==0 )
{
printf("\n\tEven number");
}
else
{
printf("\n\tOdd number");
}
return 0;
}
Come again Learn again !
< icodebuzz />
No comments:
Post a Comment