clear// //Variables R1 = 4 //Resistance (in kilo-ohm) R2 = 6 //Resistance (in kilo-ohm) R3 = 2 //Resistance (in kilo-ohm) //Calculation R = R1 + R2 + R3 //Equivalent Resistance(in kilo-ohm) //Result printf("\n Equivalent Resistance is %0.3f kilo-ohm." ,R)