Monday, 12 December 2011

C program to show acromatic string



#include<stdio.h>

main()
{
char ch[100];
int i;
printf("Enter any string : ");
  gets(ch);
i=0;
printf("%c",ch[0]);
while(ch[i]!='\0')
{
if(ch[i]==' ')
{
i++;
printf("%c",ch[i]);
}
i++;
}
printf("\n");
}



You Like It!? Then kindly share with your Friends.
Comments
0 Comments

No comments:

Post a Comment