File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1501,12 +1501,6 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
15011501 document . getElementById ( 'segment-area' ) . innerText = '' ;
15021502 return ;
15031503 }
1504-
1505- if ( ratio === 1 ) {
1506- document . getElementById ( 'segment-area' ) . innerText =
1507- `Area of semi-circle: ${ area . toFixed ( 5 ) } square units` ;
1508- return ;
1509- }
15101504
15111505 if ( ratio > 1 ) {
15121506 document . getElementById ( 'segment-area' ) . innerText = 'A circle-segment is less than half as high as long.' ;
@@ -1520,6 +1514,12 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
15201514
15211515 const area = segmentArea ( length , height , angle , radius ) ;
15221516
1517+ if ( ratio === 1 ) {
1518+ document . getElementById ( 'segment-area' ) . innerText =
1519+ `Area of semi-circle: ${ area . toFixed ( 5 ) } square units` ;
1520+ return ;
1521+ }
1522+
15231523 document . getElementById ( 'segment-area' ) . innerText =
15241524 `Area: ${ area . toFixed ( 5 ) } square units` ;
15251525}
You can’t perform that action at this time.
0 commit comments