blob: 7fa4f037a83584fecd02002b6d3bb8d19fe28b92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//Given
I=20 //A
R=2 //ohm
n=0.5
P=2000 //W
//Calculation
P1=P/n
V=P1/I
Eb=V-(I*R)
//Result
printf("\n The back e.m.f is %0.3f V \nSupply voltage is %0.3f V",Eb,V)
|