C#通过不了原因是啥?请大佬帮忙看看
查看原帖
C#通过不了原因是啥?请大佬帮忙看看
522214
Yezige楼主2021/9/5 18:20

using System;

namespace B2011 { //计算分数的浮点数值 class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int a, b; double c; a = Convert.ToInt32(str[0]); b = Convert.ToInt32(str[1]); c =(double)a /(double)b; Console.WriteLine("{0:f9}",c); } } }

2021/9/5 18:20
加载中...