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-2501: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
大家都在问
最新问答