char str[6],*ps=str;
printf("Input :\n");
gets(str);
printf("Output:\n");
while(*ps)
{
putchar(*ps++);
putchar(' ');
}
printf("Input :\n");
gets(str);
printf("Output:\n");
while(*ps)
{
putchar(*ps++);
putchar(' ');
}

Do people want thick road ...