blob: dc82a9b3fbaa4abccb611181fdf2323d2f4052b0 (
plain)
1
2
3
4
5
6
7
8
|
//chapter 4 Ex 33
clc;
clear;
close;
Eachday=20; idleFortified=3; twoMonths=60; wageTwoMonths=280;
idleDays=(Eachday*twoMonths-wageTwoMonths)/(Eachday+idleFortified);
mprintf("The worker remained idle for %d days",idleDays);
|