From 53fec3a674fe068a0a7ab0126f038eabe9f44b8a Mon Sep 17 00:00:00 2001 From: SinusFox Date: Wed, 3 May 2023 18:55:17 +0200 Subject: [PATCH] extracting the text to a var --- Exercise 1 - Hello World/C/ex1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Exercise 1 - Hello World/C/ex1.c b/Exercise 1 - Hello World/C/ex1.c index 1223597..3cc7b8a 100644 --- a/Exercise 1 - Hello World/C/ex1.c +++ b/Exercise 1 - Hello World/C/ex1.c @@ -1,6 +1,7 @@ #include int main() { - printf("Hello World the second - I coded this before. So yeah, FOXES ARE SUPERIOR.\nBut the professor wants us to write the following: \"index = 2 * count + 42;\""); + char* sourcecode = "Hello World the second - I coded this before. So yeah, FOXES ARE SUPERIOR.\nBut the professor wants us to write the following: \"index = 2 * count + 42;\""; + printf(sourcecode); return 0; }