1 2 3 4 5 6 7 8 9 10 11 12
clear //Initialisation E=12 //EMF in volt v2=7 //volt //Calculation v1=E-v2 //volt //Result printf("\n V1 = %d V",v1)