#include <stdio.h>

/* Terry Harvey CISC105 Section 21 TA Aaron*/

/* Sample char program for class */

char getNextAlphaChar();

int main(){
    char atoz;
    char word[10];
    const int size = 3;
    char x = 'q';
    int i;

    printf("enter some stuff: ");

    for(i=0; i<size; i++){
        word[i] = getNextAlphaChar();
    }

    for(i=0; i<size; i++){
        printf("%c", word[i]);
    }

    printf("%s", word);

    printf("\n");
    return 0;
}

char getNextAlphaChar(){

    char c;

    scanf("%c", &c);

    while( c < 'a' || c > 'z' ){//loop while not what we want
        scanf("%c", &c);
    }

    return c;
}
