WORDNUM2 - Word or number (easiest 2)
We use alphabetic characters from the Romans for words, and numerals from the Arabs for numbers. Can you write a program to tell the difference?
Input
Input will be a sequence of either alphabetic characters, or a sequence of numeric characters (no decimals).
Output
Output "word" (no quotes) if the characters are alphabetic. Output "number" (no quotes) if the characters are numeric. All character will be one or the other.
Example
Input: ACM Output: word
Input: 012 Output: number
hide comments
Fandy Ahmad:
2013-11-10 10:36:15
how do the output if i take input ASD123 ?
|
|
Nick:
2013-05-21 13:09:28
thank you, I can learn string more.. |
|
avinash choudhary:
2012-09-27 06:49:34
@Andrés: Did not work..
|
|
Andres R. Arrieche S. [UCLA-ve]:
2012-09-26 13:37:23
@avinash choudhary Try with class name "Main" |
|
avinash choudhary:
2012-09-26 11:48:44
Since this is my first java upload..can someone plz tell me wat does this error want me to do...
|
|
ken_taiken:
2012-09-26 08:18:32
Tutorial ! Last edit: 2012-09-26 08:22:07 |
|
(Tjandra Satria Gunawan)(曾毅昆):
2012-09-26 05:32:00
Definitely tutorial! even for BF programmer... |
Added by: | Paul Draper |
Date: | 2012-09-26 |
Time limit: | 0.705s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |