blob: 7ec5de14ae4d2bc67541b7148b97ccb28ec1224a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Example 27_5
clc();
clear;
//To find how much of the orignal I will still present
d1=20 //Units in mg
d2=d1/2 //Units in mg
d3=d2/2 //Units in mg
d4=d3/2 //Units in mg
d5=d4/2 //Units in mg
d6=d5/2 //Units in mg
d7=d6/2 //Units in mg
printf("After 48 days only %.3f mg will remain",d7)
|