summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-06 16:40:12 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-06 16:40:12 +0000
commitd3046e3b1481cf6d190b8fcb814985e29852b5eb (patch)
tree0f0f966c017a09c74f032253bb6c4df400ee50df /src/main.c
parent0c54d7f8cb4b17d80ed21f7a9916ad27a13e34ed (diff)
downloadesotericFORTRAN-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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0403b49..729227f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
}