summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-07 22:35:33 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-07 22:35:33 +0000
commit975fb6f000918085d1f5ba4ac6eb95c60411dae9 (patch)
tree8dab2d0447e9e2dca9dc1b06d42d5331d55c4547 /src/main.c
parentf8b888716211b78900db62ede497fa4ac2100c00 (diff)
downloadesotericFORTRAN-975fb6f000918085d1f5ba4ac6eb95c60411dae9.tar.gz
esotericFORTRAN-975fb6f000918085d1f5ba4ac6eb95c60411dae9.zip
Added support for strings and improved print statement syntax
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 055bc9d..1e6ed2b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,9 +1,10 @@
#include <stdio.h>
+#include <string.h>
int main(){
-float a;
-a=6;
-if(a>2){
-a=a+0.5;
+char hello[11];
+strcpy(hello,"hello");
+if(5==5){
+strcpy(hello,"goodbye ");
}
-printf("%f",a);
+printf("%s%d%s",hello,6," test");
}