#Java - 371 316 294 chars
Java - 371 316 294 chars
public class Bowling{public static void main(String[] a){boolean[] o=new boolean[10];int i;for(String s:a){i=Integer.parseInt(s)-1;o[i]=true;}for(int j=9;j>=0;j--){p((o[j]?"0 ":". "));p(j==6?"\n ":"");p(j==3?"\n ":"");p(j==1?"\n ":"");}p("\n");}static void p(String l){System.out.print(l);}} First time doing this, I'm pretty sure it's shitty, but I'm a novice. It also works when the numbers aren't ordered. The numbering is wrong but I don't have time to find out how to fix it...
public class Bowling { public static void main(String[] args) { boolean[] ordened = new boolean[10]; int i; for (String s : args) { i = Integer.parseInt(s) - 1; ordened[i] = true; } for (int j = 9; j >= 0; j--) { p((ordened[j] ? "0 " : ". ")); p(j == 6 ? "\n " : ""); p(j == 3 ? "\n " : ""); p(j == 1 ? "\n " : ""); } p("\n"); } static void p(String l){ System.out.print(l); } } input is given by java B 1 2 3 5 10 for example. Output will then be:
0 . . . . 0 . 0 0 0