首页 > 其他 > 详细

地球磅数和它们在月群上的相对重量moonweight=earthweight*0.17

时间:2019-12-19 16:09:33      阅读:115      评论:0      收藏:0      [点我收藏+]
#include <iostream>
using namespace std;
int main()
{
 double earthweight;
 double moonweight;
 int counter;
 
 counter=0;
 
 for(earthweight=1.0;earthweight<=100.0;earthweight++){
  moonweight=earthweight*0.17;
 cout<<earthweight<<"earth-pounds is equivalent to";
 cout<<moonweight<<"moon-pounts.\n";
      counter++;
 if(counter==25){
  cout<<"\n";
 }
 }
 return 0;
}

地球磅数和它们在月群上的相对重量moonweight=earthweight*0.17

原文:https://www.cnblogs.com/40630762-/p/12067964.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!