saveInTheEditor

using System;

public class Program
{
public static void Main()
{
string str = "saveInTheEditor";

char[] a = str.ToCharArray();

for(int i = 0; i < a.Length; i ++)
{
          if(i == 0)
{

str =  str.Replace(a[i].ToString(),a[i].ToString().ToUpper() );
}
if(char.IsUpper(a[i]) == true)
{

str =  str.Replace(a[i].ToString(), Environment.NewLine + a[i].ToString() );
         

}
else

{

}
         


}
              Console.WriteLine(str);
}
}


output-----
Save
In
The
Editor

Comments

Popular posts from this blog

Razor View Engine VS Web Form(ASPX) View Engine

ASP.NET MVC VS WebForms

fibonacci series