mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
120ba634b8
3300-3399
17 lines
294 B
C++
17 lines
294 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int n0;
|
|
int iCase=0;
|
|
while(scanf("%d",&n0),n0)
|
|
{
|
|
iCase++;
|
|
printf("%d. ",iCase);
|
|
if(n0%2==0)
|
|
printf("even %d\n",n0/2);
|
|
else
|
|
printf("odd %d\n",(n0-1)/2);
|
|
}
|
|
return 0;
|
|
}
|