下列程序的功能是计算从 0.01 到 1.0 的数列之和。数列以 0.01 递增,即 0.01 + 0.02 + 0.03 +......。请完善下列程序 public class RunTest { public static void main(String args[]){ float ( 1 ) ; for (float i=0.01f; ( 2 ) ;i=i+0.01f) sum+=i; System.out.println("The summation is "+sum); } }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Online Business Skills Courses Courses for Success Learn new skills or improve your existing ones with expert instruction from Courses for Success. Enhance your career options with convenient online t...
【简答题】Online Business Skills Courses Courses for Success Learn new skills or improve your existing ones with expert instruction from Courses for Success. Enhance your career options with convenient online t...