Advertisement
JordanFarnell

Spanish Numbers

Oct 24th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. package spanishnumbers;
  2.  
  3.  
  4. public class SpanishNumbers {
  5.  
  6.     public static void numbers(int num) {
  7.         String[] numbers = {"uno", "dos", "tres", "cuatro", "cinco", "seis", "siete", "ocho", "nueve", "diez"};
  8.             System.out.println((num + 1) + " " + numbers[num]);
  9.     }
  10.     public static void main(String[] args) {
  11.         for (int i = 0; i <= 9; i++)
  12.             numbers(i);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement