midoking

Untitled

Aug 18th, 2017
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     double t = 157680000;
  7.     double pop = 312032486;
  8.     double newbirth = t / 7.0;
  9.     double death = t / 13.0;
  10.     double immig = t / 45.0;
  11.     cout << "Population after 5 years is " << (int)(pop + newbirth - death + immig) << " Persons" << endl;
  12.     system("pause");
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment