even? odd? bonus???


Submit solution

Points: 10 (partial)
Time limit: 5.0s
Memory limit: 256M

Authors:
Problem type

題目說明

加分題(10pt)

使用者可持續輸入整數,直到輸入0則結束輸入,最後回傳輸入過的所有整數分別是奇數還是偶數,並輸出總共幾個奇數幾個偶數

均>=0

輸入

整數 若輸入=0就終止輸入

輸出

所有輸入的整數分別為奇數還是偶數(個別呈現)\n奇數幾個\n偶數幾個

sample input1

1 2 3 4 5 0

sample output1

odd
even
odd
even
odd
3
2

Comments

There are no comments at the moment.