Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
- public class Main {
- public static void main(String[] args) {
- int bornChildPer120Sec = 120;
- double bornChildPerSec = 1.00/bornChildPer120Sec;
- int deathPer100Sec = 100;
- double deathPerSec = 1.00/deathPer100Sec;
- int emigrantPer40Sec = 40;
- double emigratPerSec = 1.00/emigrantPer40Sec;
- double sumPerSec=(bornChildPerSec+emigratPerSec)-deathPerSec;
- double sum=sumPerSec*60*60*24*365;
- int populationNow=81198000;
- Double after10YearPopulation=populationNow+sum;
- String result=String.format("%.0f",after10YearPopulation);
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment