From 975fb6f000918085d1f5ba4ac6eb95c60411dae9 Mon Sep 17 00:00:00 2001 From: AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> Date: Sun, 7 Nov 2021 22:35:33 +0000 Subject: Added support for strings and improved print statement syntax --- src/main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/main.c') 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 +#include 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"); } -- cgit v1.2.3