poj3994

简单题

View Code
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
using namespace std;

int n;

int main()
{
    int t = 0;
    while (scanf("%d", &n) && n)
    {
        t++;
        printf("%d. ", t);
        if (n & 1)
            printf("odd ");
        else
            printf("even ");
        printf("%d\n", n / 2);
    }
    return 0;
}
posted @ 2012-10-23 16:54  undefined2024  阅读(119)  评论(0)    收藏  举报