C# Console Girilen Metni Tersten Yazdırma - Bilişim Konuları

C# Console Girilen Metni Tersten Yazdırma

Klavyeden girilen herhangi bir metin ifadesini yazıp enter tuşuna bastıktan sonra o metni ekrana tersten yazdıran C# Console programının kodlarıdır.

Ekran görüntüsü

Programın C# kodları:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Örnekler
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Herhangi Bir Yazı Giriniz  : ");
            string yazi = Console.ReadLine();
            int yaziuzunlugu = yazi.Length;

            for (int i = yaziuzunlugu; i > 0; i--)
            {
                Console.Write(yazi.Substring(i - 1, 1));
            }
            Console.ReadKey();
        }
    }
}     
Bu Yazıya Tepkin Nedir?
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Yorum Yap