C#的问题,把数学关系3≤x-查字典问答网
分类选择

来自李现明的问题

  C#的问题,把数学关系3≤x<10表示成C#表达式为:().输入两个整数,输出它们的商,并输出商的第2位小数位(例如:15/18.0=1.875,1.875的第二位小数位是7)

  C#的问题,

  把数学关系3≤x<10表示成C#表达式为:().输入两个整数,输出它们的商,并输出商的第2位小数位(例如:15/18.0=1.875,1.875的第二位小数位是7)

1回答
2020-11-25 01:16
我要回答
请先登录
蒋振刚

  usingSystem;

  usingSystem.Collections.Generic;

  usingSystem.Linq;

  usingSystem.Text;

  namespaceConsoleApplication2

  {

  classProgram

  {

  staticvoidMain(string[]args)

  {

  floatx=4;

  floaty=2;

  floatc;

  c=x/y;

  stringa=Convert.ToString(c);

  string[]b=newstring[a.Length+2];

  for(inti=0;i

2020-11-25 01:19:12

最新问答

推荐文章

猜你喜欢

附近的人在看

推荐阅读

拓展阅读

  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  •