#BBC Basic, 67 ASCII characters, tokenised filesize 43 bytes
BBC Basic, 67 ASCII characters, tokenised filesize 43 bytes
Download interpreter at http://www.bbcbasic.co.uk/bbcwin/download.html
INPUTw,h,n:WIDTHw:PRINTLEFT$(STRING$(w*h,STRING$(n-1,".")+"X"),w*h)
BBC basic has a handy command for limiting the field width. We use STRING$ to make w*h copies of the string of n-1 periods followed by an X. Then we use LEFT$ to truncate this to w*h characters.
#BBC Basic, 67 ASCII characters, tokenised filesize 43 bytes
Download interpreter at http://www.bbcbasic.co.uk/bbcwin/download.html
INPUTw,h,n:WIDTHw:PRINTLEFT$(STRING$(w*h,STRING$(n-1,".")+"X"),w*h)
BBC basic has a handy command for limiting the field width. We use STRING$ to make w*h copies of the string of n-1 periods followed by an X. Then we use LEFT$ to truncate this to w*h characters.
BBC Basic, 67 ASCII characters, tokenised filesize 43 bytes
Download interpreter at http://www.bbcbasic.co.uk/bbcwin/download.html
INPUTw,h,n:WIDTHw:PRINTLEFT$(STRING$(w*h,STRING$(n-1,".")+"X"),w*h)
BBC basic has a handy command for limiting the field width. We use STRING$ to make w*h copies of the string of n-1 periods followed by an X. Then we use LEFT$ to truncate this to w*h characters.
#BBC Basic, 67 ASCII characters, tokenised filesize 43 bytes
Download interpreter at http://www.bbcbasic.co.uk/bbcwin/download.html
INPUTw,h,n:WIDTHw:PRINTLEFT$(STRING$(w*h,STRING$(n-1,".")+"X"),w*h)
BBC basic has a handy command for limiting the field width. We use STRING$ to make w*h copies of the string of n-1 periods followed by an X. Then we use LEFT$ to truncate this to w*h characters.