blob: 853ade7ee85f9d3fa686540693098f7c31bbcb16 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//chapter 4 Ex 19
clc;
clear;
close;
Length=(7*12+9); //converting into inches
Length_part=Length/3;
Length_part_ft=Length_part/12;
Length_part_in=modulo(Length_part,12);
printf("The length of each part is %d ft %d inches",Length_part_ft,Length_part_in);
|