C Programs
C programs with their output
Home
Programs
About
Contact
Showing posts with label
acromatic
.
Show all posts
Showing posts with label
acromatic
.
Show all posts
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");
}
Older Posts
Home
Subscribe to:
Posts (Atom)