1 2 3 4 5 6 7 8
//chapter 4 Ex 24 clc; clear; close; penBlack=1/8; penBlue=3.5; totalLength=penBlue/(1/2*(1-penBlack)); mprintf("The total length of pencil is %0.0f",totalLength);