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
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
Post a Comment