Untitled

Anonymous
plain_text
03/22/2023 10:53 AM
508 B
14
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...