#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char st[200],a;
int i,j,k;
printf("Toggle\n");
gets(st);
k=strlen(st);
for(i=0;i<k;i++)
{
a=st[i];
if(a>=97 && a<=122) //small to cap
{
st[i]=st[i]-32;
}
if(a<=90 && a>=65) //cap to small
{
st[i]=st[i]+32;
}
}
puts(st);
getch();
}
OUTPUT :
Toggle
HALLO WORLD !
hallo world !



0 comments:
Post a Comment