1 2 3 4 5 6 7 8
//Ex:1.21 clc; clear; close; i=20*10^-3;//in amps r=1000;//in ohms p=(i^2)*r; printf("Power dissipated = %f watts",p);