clear; //clc(); s1=500; h1=4.6; s2=1500; s=100; h2=3; ke=s1*h1 + s2*h2; H=ke/s; printf("the inertia constants H is:%.0f MJ/MVA\n",H);