summaryrefslogtreecommitdiff
path: root/1529/CH2/EX2.3/2_03.sce
blob: 969a3c5138c41f14145e6ead26e420aee2b0a8a8 (plain)
1
2
3
4
5
6
//Chapter 2, Problem 3
clc;
V=20;               //Potential difference 
I=0.8;              //Current in ampere
R=V/I;              //Calculating resistance using Ohm's law
printf("Resistance = %d ohms",R);