You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
int isgenap(int x)
{int b;
b=(x%2==0)? 1 : 2 ;
return b;
}
int main()
{int n;
int x;
scanf("%d",&n);
x=isgenap(n);
(x==1)? printf("\ngenap") : printf("\nganjil");
getch();
}

You might also like