fun script

Mar 12, 2009 10:36

a friend who is working on learning shell script asked me to do this. Write a script which generates all the letters then reports back whether they are capital or lowercase. It took me a little bit of thinking to come up with one I must admit, but this is what I wrote ( Read more... )

Leave a comment

Comments 3

fings March 12 2009, 14:55:46 UTC
The symbol you use is arbitrary, but I agree using a "0" would just be asking for confusion. Using "1" makes intuitive sense -- base 1 is basically just tally marks.

You can't write a 0 in base 1. 0 in base 1 is just the absence of any marking.

Reply


hemlock March 12 2009, 16:38:14 UTC
There is no 10 in Base10, only 1 ten and 0 ones, there is no 2 in Base2 only 1 two and 0 ones...

In Base-n, the counting digits never reach n because it would mean taking advantage of the next numeric place...

So Base-1 should only be allowed to use the counting digit of 0.

Reply

dwivian March 12 2009, 18:26:06 UTC
Exactly ( ... )

Reply


Leave a comment

Up