-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Support case sensitive file types (#1047)
Fix: #1043
- Loading branch information
Showing
6 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
PROGRAM Triangle | ||
IMPLICIT NONE | ||
REAL :: a, b, c, Area | ||
PRINT *, 'Welcome, please enter the& | ||
&lengths of the 3 sides.' | ||
READ *, a, b, c | ||
PRINT *, 'Triangle''s area: ', Area(a,b,c) | ||
END PROGRAM Triangle | ||
FUNCTION Area(x,y,z) | ||
IMPLICIT NONE | ||
REAL :: Area ! function type | ||
REAL, INTENT( IN ) :: x, y, z | ||
REAL :: theta, height | ||
theta = ACOS((x**2+y**2-z**2)/(2.0*x*y)) | ||
height = x*SIN(theta); Area = 0.5*y*height | ||
END FUNCTION Area |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"version": "0.2", | ||
"enableFiletypes": [ | ||
"FortranFreeForm", | ||
"php", | ||
"ruby" | ||
], | ||
"language": "en" | ||
} |