1 2 3 4 5 6 7 8
//Ex:1.19 clc; clear; close; v=3;//in volts i=1.5;//in amperes p=v*i; printf("Power supplied = %f watts",p);