summaryrefslogtreecommitdiff
path: root/1529/CH1/EX1.1/1_01.sce
blob: 670bf18b486040a0acede03d996f00605972bca6 (plain)
1
2
3
4
5
6
//Chapter 1, Problem 1
clc;
I=5;                //current
T=2*60;             //time taken to flow current
Q=I*T;              //calculating quantity of electricity
printf("Quantity of electricity Q = %f C \n\n\n",Q);