summaryrefslogtreecommitdiff
path: root/1553/CH10/EX10.32/10Ex32.sce
blob: 04cc2429a636311633cb6855923c35e636670eb9 (plain)
1
2
3
4
5
6
7
8
9
//chapter 10 Ex 32

clc;
clear;
close;
hinFail=35; engFail=45; bothFail=20;
hinengbothFail=hinFail+engFail-bothFail;
passboth=100-hinengbothFail;
mprintf("The percentage passed in both is %d percent",passboth);