Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package spanishnumbers;
- public class SpanishNumbers {
- public static void numbers(int num) {
- String[] numbers = {"uno", "dos", "tres", "cuatro", "cinco", "seis", "siete", "ocho", "nueve", "diez"};
- System.out.println((num + 1) + " " + numbers[num]);
- }
- public static void main(String[] args) {
- for (int i = 0; i <= 9; i++)
- numbers(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement