FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/src/bin/example_input.txt at main · certik/lpython · GitHub
certik
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
src
/
bin
/
example_input.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (32 loc) · 567 Bytes
Breadcrumbs
lpython
/
src
/
bin
/
example_input.txt
Copy path
File metadata and controls
34 lines (32 loc) · 567 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
integer a
a = 500
if (a .GT. 100) then
if (a .GT. 200) print *, ">200"
endif
integer function f(g);
integer, intent(in) :: g
integer :: a
f = 42
if (f .GT. 0) then
if (g .LT. 0) then
do a = 1, 42
if (f .EQ. a) print *, "The answer is: "
enddo
endif
end if
end function
f(-42)
subroutine h(r)
real, intent(out) :: r
integer :: n, i
n = 42
do i = 1, n
if (i .LT. 100) then
if (i .EQ. 42) r = (n**2)**(0.5)
if (i .EQ. 42) then
print *, "To be more precise, the answer is: ", r
endif
endif
enddo
end subroutine
call h(42.0)
Back
|
FazBrowse Home
|
New Git URL