MATH OPERATIONS IN C # ( Operasi MTK butuh biaya RS dan berdoa agar operasi bjln lncar )

Mathematics there are many functions one of which uses a number of roots and dub and other functions, I'll identifies how to program using the square root, ok let's get started ....










as usual must create a new project.


The next textbox add 4, 4 label, 2 button.



when it is click on the first button and this code, the advice should not be copied, manually type in the good in it. :D

Double number = 0;
Double result = 0; number = Convert.ToDouble(textBox1.Text);
result = Math.Pow(number, 2);
textBox2.Text = result.ToString();

when it clicks on the button, and this code themselves


if successful please comment and subscribe.
Thnks You Very Much :D

Double number = 0;
Double result = 0;
number = Convert.ToDouble(textBox3.Text);
result = Math.Pow(number, 0.5); textBox4.Text = result.ToString();

Comments

Popular Posts