diff options
author | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-06 16:40:12 +0000 |
---|---|---|
committer | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-06 16:40:12 +0000 |
commit | d3046e3b1481cf6d190b8fcb814985e29852b5eb (patch) | |
tree | 0f0f966c017a09c74f032253bb6c4df400ee50df /src/main.c | |
parent | 0c54d7f8cb4b17d80ed21f7a9916ad27a13e34ed (diff) | |
download | esotericFORTRAN-d3046e3b1481cf6d190b8fcb814985e29852b5eb.tar.gz esotericFORTRAN-d3046e3b1481cf6d190b8fcb814985e29852b5eb.zip |
Working if/else statements (very basic and unstable)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,6 +2,11 @@ int main(){ int a; a=5.0; -a=a+1.0; +if(a<2.0){ +a=a+5.0; +} +else { +a=a-3.0; +} printf("%d",a); } |