public static int vowels(string str,bool n){
for(int i=0;i<str.Length;i++){
if (str[i] == 'a' || str[i] == 'e' || str[i] =='i' || str[i] == 'o' || str[i] == 'u')
public static bool palindrome(string s){
public static int duplicate(string input){
while (input.Length > 0){
for (int j = 0; j < input.Length; j++){
if (input[0] == input[j]) {
input = input.Replace(input[0].ToString(),string.Empty);
public static void Main()
Console.Write("Enter a string - ");
str = Console.ReadLine();
for(int i=0;i<str.Length;i++){
Console.WriteLine("The string length: {0}", count);
int vowelcount = vowels(str,false);
Console.WriteLine("The number of vowels: {0} ", vowelcount);
int vowelcounty = vowels(str,true);
Console.WriteLine("The number of vowels(include y): {0} ", vowelcounty);
Console.WriteLine("The String is Palingdrome");
Console.WriteLine("The String is Not Palingdrome");
int dupli = duplicate(str);
Console.WriteLine("The number of duplicate value: {0}", dupli);