Java Kodu
String kelime = "selam";
char[] charArray = kelime.toCharArray();
for (int i = 0 ; i < charArray.length; i++)
{
String bosluk = "";
for (int j = 0 ; j < i ; j++)
bosluk += " ";
System.out.println(bosluk+charArray[i]);
}
Console
s
e
l
a
m