Untitled
unknown
plain_text
3 years ago
379 B
8
Indexable
class NumberToWordExample1 {
static void numberToWords(char num[]) {
// int len = num.length;
int len =5;
if (len == 0) {
System.out.println("The string is empty.");
return;
}
if (len > 4) {
System.out.println("\n The given number has more than 4 digits.");
return;
}
}
}Editor is loading...