//PROGRAM TO FIND ACRONYM OF A STRING
//Downloaded from www.c4cprog.co.nr
#include<conio.h>
#include<string.h>
void main()
{
int k=1,i;
char st[100],st2[10];
clrscr();
printf("\n\nEnter The String : ");
gets(st);
st2[0]=toupper(st[0]);
for(i=1;i<strlen(st);i++)
if(st[i]==' ')
{
st2[k]=toupper(st[i+1]);
k++;
}
printf("\n\nThe ACRONYM Is : ");
for(i=0;i<k;i++)
printf("%c",st2[i]);
getch();
}
/*
OUTPUT
Enter The String : Testing The Program Of Acronym
The ACRONYM Is : TTPOA
*/
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Acronym Of String
Click Here To Download C File Of This Program
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment