blob: bd754b8e11bd16cf864d4036efe2bbb8d36b2d62 (
plain)
1
2
3
4
5
6
7
8
9
|
clc,clear
//Example 4.10
//To determine area of sector of circle
s=6 //arc length in cm
r=9 //radius in cm
A=r*s/2 //Area of sector
printf('Area of sector = %.0f cm^2\n\n',A)
printf('Note: Angle subtended by arc = %f rad',s/r)
|