【发布时间】:2021-12-21 01:48:47
【问题描述】:
我用 C# 编写了一个简单的计算器程序,它也可以计算任何数字的平方根。
所以,我只是想知道您是否可以在标签中显示所述数字。或者更确切地说,就像在实际数学中计算数字在平方根以下时那样显示它
(https://images-na.ssl-images-amazon.com/images/I/51Vo0t5w5YL.jpg).
这还有可能吗?对于那些好奇的人:
//Root
if (CW3.Checked) //Square Root Box checked
{
if (Z3N.Checked) //Negativ Number Box checked
{
MessageBox.Show("You can't get the square root of negative numbers.");
}
else
{
Zahl3 = Math.Sqrt(Zahl3);
}
}
【问题讨论】:
-
除非你想自己呈现这个,compart.com/en/unicode/U+221A
标签: c# math label square-root