Facebook Sayfamızı Beğenin

1 Mart 2016 Salı

Çocuk 60 Aydan küçükse “Okula Gidemez”
Çocuk 60-66 Ay arasında ise “İsteğe Bağlı Okula Gidebilir”
Çocuk 66-72 Ay arasında ise “Zorunlu Olarak Gider”

1
2
3
4
5
6
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
private void button1_Click(object sender, EventArgs e)
{
int ay;
ay=int.Parse(textBox1.Text);
if (ay < 60)
{
label3.Text = "Okula Gidemez";
}
else if(ay<=66)
{
label3.Text="İsteğe Bağlı";
}
else
{
label3.Text = "Zorunlu Olarak Gönderilmelidir";
}
 
}
}
}

Hiç yorum yok:

Yorum Gönder