/*outputing letter of string one by one in a given row*/
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<string.h>
void string(int row,char word);
int main()
{ /*body*/
char word[20],ans;
int row;
clrscr();

printf("Input string: ");
gets(word);
printf("What row ? ");
scanf("%i",&row);
string(int row,char word);

getch();
return 0;
}

void string(int row,char *word) /*function*/
{
int len,col,inside;
len=strlen(word);
inside=0;
col=(80-len)/2;
do
{
gotoxy(col,row);
printf("%c",word[inside]);
delay(50);
col++;inside++;
}
while (col<len);
}