blob: 7cbd14feed1516153222674e9440afd3f8ab3d36 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
// Given that
q = 11 // charge enclosed at the centre of cube in C
l = 5 // length of the side of cube in cm
e0 = 8.85e-12 // permittivity of space
// Sample Problem 18 on page no. 10.43
printf("\n # PROBLEM 18 # \n")
fi_ = (q / e0) / 6
printf("\nStandard formula used \n fi=q/e_\n")
printf(" Electric flux through each surface of the cube = %e Nm^2/C.",fi_)
|