blob: 90289b001a17c421148dc1cc08d6d45db0eadce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//3.4
clc;
V=1;
R=2*10^3;
I=(V/R)*1000;
printf("Actual current=%.2f mA",I)
Rm=1000;
Rt=R+Rm;
I=(V/Rt)*1000;
printf("\nCurrent when Rm is 1000 ohm =%.2f mA",I)
Rm=100;
Rt=R+Rm;
I=(V/Rt)*1000;
printf("\nCurrent when Rm is 100 ohm =%.2f mA",I)
|