MY name is ruhul amin
#include
#include
int main()
{
char a[100],result[100];
int i,j,k,la;
while(scanf("%s",a)!=EOF)
{
la=strlen(a);
for(i=0;i='a')&&(a[i+1]<='z'))
{
while((a[i]>='a')&&(a[i]<='z'))
{
result[i]=a[i]-32;
i++;
}
}
else if((a[i]>='A')&&(a[i+1]<='Z'))
{
while((a[i]>='A')&&(a[i]<='Z'))
{
result[i]=a[i]+32;
i++;
}
}
else
{
result[i]=a[i];
i++;
}
i=i-1;
}
for(j=0;j
No comments:
Post a Comment