新人求解
鹏割 2014-07-06 03:48:35 [code=c#include <iostream>
using namespace std;
void main()
{
long long world,America;
long double A;
cout<<" Enter the world's population:";
cin>>world;
cout<<" Enter the population of the US:";
cin>>America;
A=(America/world)*100;
cout<<" The population of the US is "<<A<<"% of the world population.";
system("pause");
}
][/code]
上面是代码,为什么我输入的是6898758899,310783781,输出的是The population of US is 0% of the world population,为什么是0%, 还有一个问题就是为什么我没有换行。而输出的语句却自动换行了