diff options
author | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-22 16:30:45 +0000 |
---|---|---|
committer | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-22 16:30:45 +0000 |
commit | 8e368b67de60442c483bd9def7036e52562ccc81 (patch) | |
tree | 947d775285ad2df464177df8ec9e1d63e99cae0d /src/example.txt | |
parent | ab5584190b83a8cda9cbb3469ce841dbaa3aa38a (diff) | |
download | esotericFORTRAN-8e368b67de60442c483bd9def7036e52562ccc81.tar.gz esotericFORTRAN-8e368b67de60442c483bd9def7036e52562ccc81.zip |
Improved error handing and added logical statements
Diffstat (limited to 'src/example.txt')
-rw-r--r-- | src/example.txt | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/example.txt b/src/example.txt index bbc8973..55236c1 100644 --- a/src/example.txt +++ b/src/example.txt @@ -1,9 +1,12 @@ -int::nfact int::n -nfact=1 -n=1 -do while(n<10) -nfact=nfact*n -n=n+1 -print*,n," ", nfact endprint -end do
\ No newline at end of file +int::a +int::b +int::temp +a=0 +b=2 +if (a==0.and.b==1) then +print*,"true" +else +print*,"false" +end if + |