diff options
author | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-07 22:35:33 +0000 |
---|---|---|
committer | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-07 22:35:33 +0000 |
commit | 975fb6f000918085d1f5ba4ac6eb95c60411dae9 (patch) | |
tree | 8dab2d0447e9e2dca9dc1b06d42d5331d55c4547 /src/main.c | |
parent | f8b888716211b78900db62ede497fa4ac2100c00 (diff) | |
download | esotericFORTRAN-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.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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"); } |