blob: 7b24fbe55b05814dd8cd795bcd244a482b85f089 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//chapter 6 Ex 12
clc;
clear;
close;
n=10; inc=1.8;
weightreplaced=53;
totalinc=n*inc;
weightNew=weightreplaced+totalinc;
mprintf("The weight of new man is %d kg.",weightNew);
|