blob: 8f5ac4fb1b8e3fb0dfc4182c3eb8280b8f2372d0 (
plain)
1
2
3
4
5
6
7
8
9
|
//chapter 4 Ex 31
clc;
clear;
close;
popX=68000; popY=42000;
rateX=1200; rateY=800;
years=(popX-popY)/(rateX+rateY);
mprintf("The population will be equal after %d years",years);
|