#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
int main()
{
char str[80],output[80],*p;
int i;
clrscr();
printf("Enter the sentence\n");
gets(str);
p=strtok(str," .");
strcpy(output,p);
strcat(output," ");
clrscr();
printf("%80s",output);
while(1)
{
delay(1000);
p=strtok(NULL," .");
if(p!=NULL)
{
strcat(output,p);
strcat(output," ");
clrscr();
printf("%80s",output);
}
else break;
}
for(i=75;i>0;i=i-5)
{
delay(1000);
clrscr();
printf("%*s",i,output);
}
getch();
return 0;
}
No comments:
Post a Comment