#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char st[200],a[200];
int i,j=0,k;
gets(st);
k=strlen(st);
a[0]=st[0];
j++;
for(i=0;i<k;i++)
{
if(st[i]==' ')
{
a[j]='.';
j++;
a[j]=st[i+1];
j++;
}
}
puts(a);
getch();
}
OUTPUT :
Pankaj Deb Roy
P.D.R
0 comments:
Post a Comment