summaryrefslogtreecommitdiff
path: root/1529/CH2/EX2.4/2_04.sce
blob: 720e4e9fd9e1bf741d1aa4c23068ce535a7069db (plain)
1
2
3
4
5
6
//Chapter 2, Problem 4
clc;
R=2*10^3;                   //Resistance in ohms
I=10*10^-3;                 //Current in ampere
V=R*I;                          //Calculating voltage
printf("Potential difference = %d V",V);