Klavyeden girilen cümle veya kelimenin karakterlerini tersten alt alta yazma C# Console
[code lang=”csharp”]
using System;//www.gorselprogramlama.com
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cümleyi_tersten_altalta_yaz
{
class Program
{
static void Main(string[] args)
{
Console.Write("Cümle veya kelimeyi girin:");
string s = (Console.ReadLine());//www.gorselprogramlama.com
int a=s.Length;
string m;
for (int i = 1; i <= a; i++)
{
m = s.Substring(a – i, 1);
Console.WriteLine(m);
}
Console.ReadKey();
}//www.gorselprogramlama.com
}
}
[/code]
