clc //Initialization of variables EH=2.1 EBr=2.8 //calculations diff=-EH+EBr //results printf("Prediced dipole moment = %.1f D",diff)