#include <stdio.h>

/*
 * Program to 
 * Terry Harvey CISC 105 section 98 TA Jaco Pastorius
 */

int main(){

    char word[6] = {'a','b','a','c','k', '\0'};
    char word2[5];
    char word3[5] = "spam";

    printf("Enter a word: ");
    scanf("%s", word2);

    int i = 0;
    while(word[i] != '\0'){
	printf("%c", word[i]);
	i++;
    }
    i = 0;
    while(word2[i] != '\0'){
	printf("%c", word2[i]);
	i++;
    }
    printf("%s\n", word3);

    printf("\n");

    return 0;
}
