2015-12-06 23:59:51
#include <stdio.h>
#include <string.h>
int main()
{ char str[100];
int i=0,len=0,ch=0,v=0;
  gets(str);
for(i=0;str[i]!='\0';i++)
{
 len=len+1;
}
 printf("the length of this string= %d\n",len);
  printf("the reverse of this string= ");
for(i=len-1;i>=0;i--)
{
 printf("%c",str[i]);
}
for(i=0;i<=len;i++)
{
 if((str[i]>='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z'))
 ch++;
}
for(i=0;i<=len;i++)
{
 if(str[i]=='A'||str[i]=='a'||str[i]=='E'||str[i]=='e'||str[i]=='I'||str[i]=='i'||str[i]=='O'||str[i]=='o'||str[i]=='U'||str[i]=='u')
 v++;
}
printf("\nthe number of character of this string is= %d\n",ch);
printf("the number of vowel of this string is= %d\n",v);
printf("\nthe number of consonant of this string is= %d\n",ch-v);
 
 return 0;
}
 
 
Invalid Email or Password