/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include<stdio.h>
void evenodd(int,int);
main()
{
int a,b;
printf("Enter a and b");
scanf("%d%d",&a,&b);
evenodd(a,b);
}
void evenodd(int x,int y)
{
if(x<=y)
{
if(x%2==0)
printf("%d is even\n",x);
else
printf("%d is odd\n",x);
}
if( x < 1000 )
{
evenodd(x+1,y);
}
}