Direnç Renk Kodunu Hesapla — Csharp Console

Direnç Renk Kodunu Hesapla — Csharp Console

 

[code lang=”csharp”]

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

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{

int girilen = 0;

do
{
//www.gorselprogramlama.com/
Console.Write("Sayı giriniz (0-9) >>> ");
girilen = Convert.ToInt32(Console.ReadLine());
if (girilen== 0) Console.WriteLine("** SİYAH **");
else if (girilen == 1) Console.WriteLine("** KAHVERENGİ **");
else if (girilen == 2) Console.WriteLine("** KIRMIZI **");
else if (girilen == 3) Console.WriteLine("** TURUNCU **");
else if (girilen == 4) Console.WriteLine("** SARI **");
else if (girilen == 5) Console.WriteLine("** YEŞİL **");
else if (girilen == 6) Console.WriteLine("** MAVİ **"); //www.gorselprogramlama.com/
else if (girilen == 7) Console.WriteLine("** MAVİ **");
else if (girilen == 8) Console.WriteLine("** GRİ **");
else if (girilen == 9) Console.WriteLine("** BEYAZ **");
else Console.Write("lÜTFEN 0-9 arasında sayı giriniz >>>");
Console.WriteLine("Devam etmek için Enter tuşuna basınız.");
Console.ReadKey();
} while (true); //www.gorselprogramlama.com/

}
}
}

[/code]

direnc_renk_kodlari

Projeyi İNDİR

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir