#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