Csharp Örnek Consol

25. April 2009

Read this article in your language IT | EN | DE | ES

           inta, b;

            a = 12;  

            b= 4;

           Console.WriteLine("a+ b = {0}", a+b);

           Console.WriteLine("a- b = {0}", a-b);

          

           Console.WriteLine("a* b = {0}", a*b); 

           Console.WriteLine("a/ b = {0}", a/b);

           Console.WriteLine("a% b = {0}", a % b);

           Console.ReadLine();

         int sayi1, sayi2;

         string SayiStr1, SayiStr2, İslem;

          Console.Write("1.SayiGiriniz");

          SayiStr1 = Console.ReadLine();

          Console.Write("2. Sayi Giriniz");

          SayiStr2 = Console.ReadLine();

          sayi1 = Int32.Parse(SayiStr1);

          sayi2 = Int32.Parse(SayiStr2);

           Console.WriteLine("İslemSeciniz");

           Console.WriteLine("(1)Toplama");

           Console.WriteLine("(2)Çıkartma");

           Console.WriteLine("(3)Çarpma");

           Console.WriteLine("(4)Bölme");

           Console.WriteLine("(5)Bölmeden Kalan");

           Console.Write("Seçiminiz: ");

           İslem = Console.ReadLine();

           if (İslem == "1")Console.WriteLine("{0}+ {1} = {2}", sayi1, sayi2, (sayi1 + sayi2));

           if (İslem == "1")Console.WriteLine("{0}- {1} = {2}", sayi1, sayi2, (sayi1 - sayi2));

           if (İslem == "1")Console.WriteLine("{0}* {1} = {2}", sayi1, sayi2, (sayi1 * sayi2));

           if (İslem == "1")Console.WriteLine("{0}/ {1} = {2}", sayi1, sayi2, (sayi1 / sayi2));

           if (İslem == "1")Console.WriteLine("{0}% {1} = {2}", sayi1, sayi2, (sayi1 % sayi2));

 

           Console.ReadLine();

 

Csharp en güzel sevdiğim yanlarından biri consolda işlem  yapmak bence Visual Studio

arayiz  Vizitlerinde değilde consolda calışmak daha güzel 

o, zaman daha  çok seviyorsunuz  yaptığınız işi  

Saygılarımla ORHANTÜRK 

FacebookDigg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

C#

Comments

5/17/2010 12:31:01 AM #
Hi what theme are you using for your site? Can you email me at Dudek@yahoo.com thanks
5/21/2010 5:08:09 PM #
Keep 'em coming... you all do such a great job at such Concepts... can't tell you how much I, for one appreciate all you do!
5/22/2010 1:28:44 AM #
That's great information. I learned a lot especially about what you mentioned. This is all new to me. Thanks for the great article, If I'm using firefox, how do I add RSS and feeds to my browser?
6/4/2010 11:25:19 PM #
You get the Lynx alpha yet? I'm tempted to get it, want to hear any thoughts

Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading



Sayfa 0.046875 saniyede yuklendi.