[plug] loop statement needed

Denis Brown dsbrown at cyllene.uwa.edu.au
Wed Mar 10 22:47:09 WST 2004


Dear Jon,

On Wed, 10 Mar 2004, Jon  Miller wrote:

> Does anyone know how to write a loop statement that can write
> out the alphabet.  It needs to increment starting with letter A
> and incrementing by 1 until it gets to the letter Z.
>
As Shayne says, "what language?"

Here is a quick-and-dirty C version...

#include <stdio.h>
main()
{
int i;
for (i=65; i<91; i++)
        printf ("%c ", i);
}

65 = ASCII "A" in decimal, etc. so this prints A B C D ...

HTH but I suspect the original meaning of your post is somewhat deeper :-)
Denis





More information about the plug mailing list