#include <stdio.h>
#include <string.h>
int main()
{
char a[80];
printf("Enter array:");
gets(a);
int i=0,cap=0,lower=0,fig=0,others=0;
while(a[i]!='\0'){
if('A'<=a[i]&&a[i]<='Z')
cap++;
else if('a'<=a[i]&&a[i]<='z')
lower++;
else if('0'<=a[i]&&a[i]<='9')
fig++;
else
others++;
i++;
}
printf("Capital=%d\tLowercase=%d\tFigure=%d\tOthers=%d\n",cap,lower,fig,others);
int length;
length=strlen(a);
for(i=length-1;i>=0;i--)
printf("%c",a[i]);
return 0;
}