blob: 5489f0ba1cdaf547e3fc3c3a9e9e6e048df9c86c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//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)
|