21 Aralık 2018 Cuma

c# form İle kare almak !

 Merhaba arkadaşlar bugün c# form da kare alacağız !  Kodumuz çok kısa bir kod olucak.





Kodlar için;


private void button1_Click(object sender, EventArgs e)
        {
            double x, y, islem, karekok;
             x = int.Parse(textBox1.Text);
             y = int.Parse(textBox2.Text);
            islem = ((Math.Pow(x, 3) + 5 * (x + y) - 3) % 4);   // 17 * 4 = 68 -3 = 65 % 4 =  16.25
            karekok = Math.Sqrt(islem);
            textBox3.Text = karekok.ToString();
        }
     

3 yorum:

c# Veritabanıyla giriş yapıp, üye olmak ve şifre unutmak!

Üye olmak;;;  if (con.State == ConnectionState.Closed)             {                 con.Open();                 string kayit = ...