File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3307,7 +3307,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
33073307 const height = parseFloat ( document . getElementById ( 'segment-height' ) . value ) ;
33083308const radius = parseFloat ( document . getElementById ( 'parent-radius' ) . value ) ;
33093309
3310- if ( isNaN ( height ) || isNaN ( length ) || isNaN ( radius ) || height === 0 || length === 0 || radius === 0 ) {
3310+ if ( isNaN ( height ) || isNaN ( length ) || isNaN ( radius ) ) {
33113311 document . getElementById ( 'segment-area' ) . innerText = '' ;
33123312 return ;
33133313 }
@@ -3334,7 +3334,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
33343334
33353335
33363336
3337- if ( height > 0 || length > 0 ) {
3337+ else if ( height > 0 || length > 0 ) {
33383338
33393339const ratio = 2 * height / length ;
33403340
You can’t perform that action at this time.
0 commit comments