using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace gectikaldi
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int not1, not2;
double ortalama;
not1 = int.Parse(textBox1.Text);
not2 = int.Parse(textBox2.Text);
ortalama = not1 * 0.4 + not2 * 0.6;
label5.Text = ortalama.ToString();
if (ortalama >= 60 && not2>50)
{
label6.ForeColor = Color.Green;
label6.Text = "gecti";
}
else
{
label6.ForeColor = Color.Red;
label6.Text = "kaldı";
}
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace gectikaldi
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int not1, not2;
double ortalama;
not1 = int.Parse(textBox1.Text);
not2 = int.Parse(textBox2.Text);
ortalama = not1 * 0.4 + not2 * 0.6;
label5.Text = ortalama.ToString();
if (ortalama >= 60 && not2>50)
{
label6.ForeColor = Color.Green;
label6.Text = "gecti";
}
else
{
label6.ForeColor = Color.Red;
label6.Text = "kaldı";
}
}
}
}