Lojban is a consruted language designed based on the Loglan language created by Dr James Cooke Brown in 1955. The numbers zero to nine in Lojban are as follows:
0=no
1=pa
2=re
3=ci
4=vo
5=mu
6=xa
7=ze
8=bi
9=so
Larger numbers are formed by combining the digits which form them. For example, 2007 in Lojban is renonoze.
Write a program which inputs a number in the range 1000...9999. The program then outputs the number in the Lojban language. A sample run of that program:
Enter number: 5138
The number in Lojban: mupacibi

Thanks!!!

Extract each digit from the input value and use a switch statement to output the correct letters.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.