//Problem 2.15: A source of e.m.f. of 15 V supplies a current of 2 A for six minutes. How much energy is provided in this time? //initializing the variables: V = 15; // in Volts I = 2; // in ampere t = 360; // in sec //calculation: E = V*I*t printf("\n\nResult\n\n") printf("\nEnergy(E): %.0f Joule(J)\n",E)