Kayıtlar

Kasım, 2016 tarihine ait yayınlar gösteriliyor

c# consol ile sayı tahmin oyunu

Resim
oyunun ekran çıktısı bu şekildedir. Gerekli Kodlar: (tüm sayfayı silip sadece bu kodları yapıştırmanız yeterli) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sayi_tahmin_oyunu {     class Program     {         static void Main(string[] args)         {             while (true)             {                 int uretilensayi;                 int tahmin = -1;                 Random rasgele = new Random();                 uretilensayi = rasgele.Next(0, 100);                 Console.WriteLine("Rasgele Bir Sayı Ürettim");                 Console.WriteLine("Sayıyı Tahmin Etmek İçin Bir Sayı Gir");                 while (tahmin != uretilensayi)                 {                     tahmin = Convert.ToInt32(Console.ReadLine());                     if (tahmin < uretilensayi)                     {                         Console.WriteLine("Daha Büyük Bir Sa

c# ile eğlenceli projeler

Resim
Başlangıç ve Bitiş Tarihleri Arasındaki Gün Farkını Veren Proje Kodlar: Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ilk, son As DateTime ilk = DateTimePicker1.Value son = DateTimePicker2.Value Dim fark As TimeSpan fark = son.Subtract(ilk) TextBox1.Text = fark.Days.ToString() + 1 End Sub Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged End Sub End Class Form İçin Gerekenler: 2 adet-Date time picker 1 adet-textbox 1 adet-button