88 defa okundu

Değişkenler-1

Ağu 10th, 2010
88 defa okundu | Henüz yorum yok.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Degiskenler
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime suan = DateTime.Now;

            Console.WriteLine(suan.ToString());
            Console.WriteLine(suan.ToShortDateString());
            Console.WriteLine(suan.ToLongDateString());
            Console.WriteLine(suan.ToShortTimeString());
            Console.WriteLine(suan.ToLongTimeString());

            Console.ReadKey();
        }
    }
}
Etiketler: ,
0 defa okundu

Operatörler_1

Ağu 10th, 2010
0 defa okundu | Henüz yorum yok.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

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

            int x = 3, y = 5, z = 7;

            y = x++;
            z += x;
            ++z;
            y += ++z;

            x /= 2;
            x = x / 2;

            y *= x;
            z = z / x;

            int kalan = z % y;//kalan verir
            int bolum = z / y;
        }
    }
}
Etiketler: ,
85 defa okundu

Merhaba Millet

Ağu 10th, 2010
85 defa okundu | Henüz yorum yok.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MerhabaMillet
{
    class Program
    {
        static void Main(string[] args)
        {
            //intellisense
            Console.WriteLine("Merhaba Ordakiler!!!");

            //ekrana yazıyı yaz ve imleci sonraki karaktere koy
            Console.Write("Nasılsınız?");

            Console.WriteLine("Çıkmak için bir tuşa basınız...");
            Console.ReadKey();//kullanıcıdan gelecek inputu bekler
            //Derleme işlemi için => ctrl + shift + b
        }
    }
}
Etiketler: ,
102 defa okundu

Merhaba Dünya

Ağu 10th, 2010
102 defa okundu | Henüz yorum yok.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SizinDeneme1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Merhaba Dünya");//parametre
            Console.ReadKey();
        }
    }
}