Öğrencinin Not Ortalamasına Göre Durumunu Gösterme Beşlik Sisteme Çevirme
int y1, y2, pf, ort; y1 = Convert.ToInt32(textBox1.Text); y2 = Convert.ToInt32(textBox2.Text); pf = Convert.ToInt32(textBox3.Text); ort = (y1 + y2 + pf ) / 3; textBox4.Text = ort.ToString(); if (ort >= 50) { textBox5.Text = "Geçer"; } else { textBox5.Text = "Kalır"; } if (ort < 50) { textBox6.Text = "1"; } else if (ort < 60) { textBox6.Text = "2"; } else if (ort < 70) { textBox6.Text = "3"; } else if (ort < 85) { textBox6.Text = "4"; } else { textBox6.Text = "5"; }
197 defa okundu.