11 Mayıs 2012 Cuma

KLAVYEDEN GİRİLEN HERHANGİ BİR CÜMLENİN EKRANA 10 DEFA YAZDIRILMASINI SAĞLAYAN PROGRAM



private void Form1_Load(object sender, EventArgs e)
{
lblSonuc.Text = "";
}
private void btnGoster_Click(object sender, EventArgs e)
{
string cumle;
cumle = txtCumle.Text;
lblSonuc.Text = "";
for (int i = 1; i <= 10; i++)
{
lblSonuc.Text = lblSonuc.Text +i+". " +cumle + "\n";
}
}

Hiç yorum yok:

Yorum Gönder