DOĞUM TARİHİNE GÖRE BURÇ HESAPLAYAN PROGRAM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Burc_hesaplama
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int gun;
int ay;
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
ay = Convert.ToInt16(dateTimePicker1.Value.Month);
gun = Convert.ToInt16(dateTimePicker1.Value.Day);
if ((ay == 12 & gun >= 12) || (ay == 1 & gun <= 20))
{
TxtBurc.Text = "OĞLAK BURCU";
}
if ((ay == 9 & gun >= 22) || (ay == 10 & gun <= 23))
{
TxtBurc.Text = "TERAZİ BURCU";
}
if ((ay == 1 & gun >= 21) || (ay == 2 & gun <= 19))
{
TxtBurc.Text = "KOVA BURCU";
}
if ((ay == 2 & gun >= 20) || (ay == 3 & gun <= 20))
{
TxtBurc.Text = "BALIK BURCU";
}
if ((ay == 3 & gun >= 21) || (ay == 4 & gun <= 20))
{
TxtBurc.Text = "KOÇ BURCU";
}
if ((ay == 4 & gun >= 21) || (ay == 5 & gun <= 21))
{
TxtBurc.Text = "BOĞA BURCU";
}
if ((ay == 5 & gun >= 22) || (ay == 6 & gun <= 21))
{
TxtBurc.Text = "İKİZLER BURCU";
}
if ((ay == 6 & gun >= 22) || (ay == 7 & gun <= 23))
{
TxtBurc.Text = "YENGEÇ BURCU";
}
if ((ay == 7 & gun >= 24) || (ay == 8 & gun <= 23))
{
TxtBurc.Text = "ASLAN BURCU";
}
if ((ay == 8 & gun >= 24) || (ay == 9 & gun <= 23))
{
TxtBurc.Text = "BAŞAK BURCU";
}
if ((ay == 102 & gun >= 23) || (ay == 11 & gun <= 22))
{
TxtBurc.Text = "AKREP BURCU";
}
if ((ay == 11 & gun >= 23) || (ay == 12 & gun <= 22))
{
TxtBurc.Text = "YAY BURCU";
}
}
}
}
...
👍👍👍
YanıtlaSil