11 lines
388 B
C++
11 lines
388 B
C++
# include <iostream>
|
|
using namespace std;
|
|
|
|
int main(){
|
|
long long wd_pop = 6898758899, us_pop = 310783781;
|
|
double rate = double(us_pop) / double(wd_pop);
|
|
cout << "There are " << wd_pop << " people in the world" << endl;
|
|
cout << "There are " << us_pop << " people in the US" << endl;
|
|
cout << "The population of the US is " << rate << "% of the world population" << endl;
|
|
return 0;
|
|
}
|