//Ex2_10 clc C = 10*10^-6 V = 100 W = C*(V^2)/2 disp("C = "+string(C)+"F")//capacitance disp("V = "+string(V)+"V")//voltage disp("W = C*(V^2)/2 = "+string(W)+"Joules")//calculating for energy stored