blob: fa67fba88edb8c1476412ff9a2000f38e955427b (
plain)
1
2
3
4
5
6
|
//Chapter 2, Problem 2
clc;
I=10; //Current flows
T=4*60; //Time converted in seconds
Q=I*T; //Calculating charge
printf("Electricity transfered = %f C",Q); //Displaying the result in coulombs
|