summaryrefslogtreecommitdiff
path: root/291/CH3/EX3.4a/eg3_4a.sce
blob: 9338a25c4b784547e1dd85bbe6df4ccc0d5af285 (plain)
1
2
3
4
5
cigarette = 0.28;
cigar = 0.07;
cigar_and_cigarette = 0.05 ; 
cigar_or_cigarette = cigarette + cigar - cigar_and_cigarette;
disp( "% of the males smoke neither cigar nor cigarette", (1-cigar_or_cigarette)*100 )