blob: 2a041eb9521d7a943bbd7842e6d316b258a548e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//initialisation of variables
clear
q= 26.45 //coloumbs
e= 2.432 //volts
//CALCULATIONS
Q1= q*e
Q2= Q1*1.0002*10^7
//RESULTS
printf ('Energy expenditure in joules = %.2f int.joules',Q1)
printf ('\n Energy expenditure in ergs = %.2e ergs',Q2)
|